home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_emacs.idb / usr / freeware / share / emacs / 19.34 / lisp / hippie-exp.elc.z / hippie-exp.elc
Emacs Compiled Lisp  |  1998-10-28  |  18.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 65 72 69 6b 40 6e 61 |piled by| erik@na|
|00000020| 67 67 75 6d 2e 6e 6f 20 | 6f 6e 20 54 75 65 20 4a |ggum.no |on Tue J|
|00000030| 75 6e 20 32 35 20 31 34 | 3a 34 30 3a 35 31 20 31 |un 25 14|:40:51 1|
|00000040| 39 39 36 0a 3b 3b 3b 20 | 66 72 6f 6d 20 66 69 6c |996.;;; |from fil|
|00000050| 65 20 2f 68 6f 6d 65 2f | 67 64 2f 67 6e 75 2f 65 |e /home/|gd/gnu/e|
|00000060| 6d 61 63 73 2f 31 39 2e | 30 2f 6c 69 73 70 2f 68 |macs/19.|0/lisp/h|
|00000070| 69 70 70 69 65 2d 65 78 | 70 2e 65 6c 0a 3b 3b 3b |ippie-ex|p.el.;;;|
|00000080| 20 65 6d 61 63 73 20 76 | 65 72 73 69 6f 6e 20 31 | emacs v|ersion 1|
|00000090| 39 2e 33 31 2e 34 2e 0a | 3b 3b 3b 20 62 79 74 65 |9.31.4..|;;; byte|
|000000a0| 63 6f 6d 70 20 76 65 72 | 73 69 6f 6e 20 46 53 46 |comp ver|sion FSF|
|000000b0| 20 32 2e 31 30 0a 3b 3b | 3b 20 6f 70 74 69 6d 69 | 2.10.;;|; optimi|
|000000c0| 7a 61 74 69 6f 6e 20 69 | 73 20 6f 6e 2e 0a 3b 3b |zation i|s on..;;|
|000000d0| 3b 20 74 68 69 73 20 66 | 69 6c 65 20 75 73 65 73 |; this f|ile uses|
|000000e0| 20 6f 70 63 6f 64 65 73 | 20 77 68 69 63 68 20 64 | opcodes| which d|
|000000f0| 6f 20 6e 6f 74 20 65 78 | 69 73 74 20 69 6e 20 45 |o not ex|ist in E|
|00000100| 6d 61 63 73 20 31 38 2e | 0a 0a 28 69 66 20 28 61 |macs 18.|..(if (a|
|00000110| 6e 64 20 28 62 6f 75 6e | 64 70 20 27 65 6d 61 63 |nd (boun|dp 'emac|
|00000120| 73 2d 76 65 72 73 69 6f | 6e 29 0a 09 20 28 6f 72 |s-versio|n).. (or|
|00000130| 20 28 61 6e 64 20 28 62 | 6f 75 6e 64 70 20 27 65 | (and (b|oundp 'e|
|00000140| 70 6f 63 68 3a 3a 76 65 | 72 73 69 6f 6e 29 20 65 |poch::ve|rsion) e|
|00000150| 70 6f 63 68 3a 3a 76 65 | 72 73 69 6f 6e 29 0a 09 |poch::ve|rsion)..|
|00000160| 20 20 20 20 20 28 73 74 | 72 69 6e 67 2d 6c 65 73 | (st|ring-les|
|00000170| 73 70 20 65 6d 61 63 73 | 2d 76 65 72 73 69 6f 6e |sp emacs|-version|
|00000180| 20 22 31 39 2e 32 39 22 | 29 29 29 0a 20 20 20 20 | "19.29"|))). |
|00000190| 28 65 72 72 6f 72 20 22 | 60 68 69 70 70 69 65 2d |(error "|`hippie-|
|000001a0| 65 78 70 2e 65 6c 27 20 | 77 61 73 20 63 6f 6d 70 |exp.el' |was comp|
|000001b0| 69 6c 65 64 20 66 6f 72 | 20 45 6d 61 63 73 20 31 |iled for| Emacs 1|
|000001c0| 39 2e 32 39 20 6f 72 20 | 6c 61 74 65 72 22 29 29 |9.29 or |later"))|
|000001d0| 0a 0a 0a 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |...(byte|-code ".|
|000001e0| c1 21 84 08 00 c2 11 c1 | 0b 42 13 c0 c4 21 84 15 |.!......|.B...!..|
|000001f0| 00 c5 20 14 c4 0b 42 13 | c0 c6 21 84 23 00 c5 20 |.. ...B.|..!.#.. |
|00000200| 16 06 c6 0b 42 13 c0 c7 | 21 84 30 00 c8 16 07 c7 |....B...|!.0.....|
|00000210| 0b 42 13 c0 c9 21 84 3d | 00 c8 16 09 c9 0b 42 13 |.B...!.=|......B.|
|00000220| c0 ca 21 84 4a 00 c8 16 | 5c 6e ca 0b 42 13 c0 cb |..!.J...|\n..B...|
|00000230| 21 84 58 00 c5 20 16 0b | cb 0b 42 13 c0 cc 21 84 |!.X.. ..|..B...!.|
|00000240| 65 00 c8 16 5c 66 cc 0b | 42 13 c0 cd 21 84 72 00 |e...\f..|B...!.r.|
|00000250| c8 16 0d cd 0b 42 13 c0 | ce 21 84 7f 00 c8 16 0e |.....B..|.!......|
|00000260| ce 0b 42 13 c0 cf 21 84 | 8c 00 c8 16 0f cf 0b 42 |..B...!.|.......B|
|00000270| 13 c0 d0 21 84 99 00 c8 | 16 10 d0 0b 42 13 c8 87 |...!....|....B...|
|00000280| 22 20 5b 62 6f 75 6e 64 | 70 20 68 65 2d 6e 75 6d |" [bound|p he-num|
|00000290| 20 2d 31 20 63 75 72 72 | 65 6e 74 2d 6c 6f 61 64 | -1 curr|ent-load|
|000002a0| 2d 6c 69 73 74 20 68 65 | 2d 73 74 72 69 6e 67 2d |-list he|-string-|
|000002b0| 62 65 67 20 6d 61 6b 65 | 2d 6d 61 72 6b 65 72 20 |beg make|-marker |
|000002c0| 68 65 2d 73 74 72 69 6e | 67 2d 65 6e 64 20 68 65 |he-strin|g-end he|
|000002d0| 2d 73 65 61 72 63 68 2d | 73 74 72 69 6e 67 20 6e |-search-|string n|
|000002e0| 69 6c 20 68 65 2d 65 78 | 70 61 6e 64 2d 6c 69 73 |il he-ex|pand-lis|
|000002f0| 74 20 68 65 2d 74 72 69 | 65 64 2d 74 61 62 6c 65 |t he-tri|ed-table|
|00000300| 20 68 65 2d 73 65 61 72 | 63 68 2d 6c 6f 63 20 68 | he-sear|ch-loc h|
|00000310| 65 2d 73 65 61 72 63 68 | 2d 6c 6f 63 32 20 68 65 |e-search|-loc2 he|
|00000320| 2d 73 65 61 72 63 68 2d | 62 77 20 68 65 2d 73 65 |-search-|bw he-se|
|00000330| 61 72 63 68 2d 62 75 66 | 73 20 68 65 2d 73 65 61 |arch-buf|s he-sea|
|00000340| 72 63 68 65 64 2d 6e 2d | 62 75 66 73 20 68 65 2d |rched-n-|bufs he-|
|00000350| 73 65 61 72 63 68 2d 77 | 69 6e 64 6f 77 5d 20 32 |search-w|indow] 2|
|00000360| 29 0a 23 40 31 37 34 20 | 54 68 65 20 6c 69 73 74 |).#@174 |The list|
|00000370| 20 6f 66 20 65 78 70 61 | 6e 73 69 6f 6e 20 66 75 | of expa|nsion fu|
|00000380| 6e 63 74 69 6f 6e 73 20 | 74 72 69 65 64 20 69 6e |nctions |tried in|
|00000390| 20 6f 72 64 65 72 20 62 | 79 20 60 68 69 70 70 69 | order b|y `hippi|
|000003a0| 65 2d 65 78 70 61 6e 64 | 27 2e 0a 54 6f 20 63 68 |e-expand|'..To ch|
|000003b0| 61 6e 67 65 20 74 68 65 | 20 62 65 68 61 76 69 6f |ange the| behavio|
|000003c0| 72 20 6f 66 20 60 68 69 | 70 70 69 65 2d 65 78 70 |r of `hi|ppie-exp|
|000003d0| 61 6e 64 27 2c 20 72 65 | 6d 6f 76 65 2c 20 63 68 |and', re|move, ch|
|000003e0| 61 6e 67 65 20 74 68 65 | 20 6f 72 64 65 72 20 6f |ange the| order o|
|000003f0| 66 2c 0a 6f 72 20 69 6e | 73 65 72 74 20 66 75 6e |f,.or in|sert fun|
|00000400| 63 74 69 6f 6e 73 20 69 | 6e 20 74 68 69 73 20 6c |ctions i|n this l|
|00000410| 69 73 74 2e 1f 0a 28 64 | 65 66 76 61 72 20 68 69 |ist...(d|efvar hi|
|00000420| 70 70 69 65 2d 65 78 70 | 61 6e 64 2d 74 72 79 2d |ppie-exp|and-try-|
|00000430| 66 75 6e 63 74 69 6f 6e | 73 2d 6c 69 73 74 20 28 |function|s-list (|
|00000440| 71 75 6f 74 65 20 28 74 | 72 79 2d 63 6f 6d 70 6c |quote (t|ry-compl|
|00000450| 65 74 65 2d 66 69 6c 65 | 2d 6e 61 6d 65 2d 70 61 |ete-file|-name-pa|
|00000460| 72 74 69 61 6c 6c 79 20 | 74 72 79 2d 63 6f 6d 70 |rtially |try-comp|
|00000470| 6c 65 74 65 2d 66 69 6c | 65 2d 6e 61 6d 65 20 74 |lete-fil|e-name t|
|00000480| 72 79 2d 65 78 70 61 6e | 64 2d 61 6c 6c 2d 61 62 |ry-expan|d-all-ab|
|00000490| 62 72 65 76 73 20 74 72 | 79 2d 65 78 70 61 6e 64 |brevs tr|y-expand|
|000004a0| 2d 6c 69 73 74 20 74 72 | 79 2d 65 78 70 61 6e 64 |-list tr|y-expand|
|000004b0| 2d 6c 69 6e 65 20 74 72 | 79 2d 65 78 70 61 6e 64 |-line tr|y-expand|
|000004c0| 2d 64 61 62 62 72 65 76 | 20 74 72 79 2d 65 78 70 |-dabbrev| try-exp|
|000004d0| 61 6e 64 2d 64 61 62 62 | 72 65 76 2d 61 6c 6c 2d |and-dabb|rev-all-|
|000004e0| 62 75 66 66 65 72 73 20 | 74 72 79 2d 65 78 70 61 |buffers |try-expa|
|000004f0| 6e 64 2d 64 61 62 62 72 | 65 76 2d 66 72 6f 6d 2d |nd-dabbr|ev-from-|
|00000500| 6b 69 6c 6c 20 74 72 79 | 2d 63 6f 6d 70 6c 65 74 |kill try|-complet|
|00000510| 65 2d 6c 69 73 70 2d 73 | 79 6d 62 6f 6c 2d 70 61 |e-lisp-s|ymbol-pa|
|00000520| 72 74 69 61 6c 6c 79 20 | 74 72 79 2d 63 6f 6d 70 |rtially |try-comp|
|00000530| 6c 65 74 65 2d 6c 69 73 | 70 2d 73 79 6d 62 6f 6c |lete-lis|p-symbol|
|00000540| 29 29 20 28 23 24 20 2e | 20 38 37 32 29 29 0a 23 |)) (#$ .| 872)).#|
|00000550| 40 36 38 20 2a 4e 6f 6e | 2d 6e 69 6c 20 6d 61 6b |@68 *Non|-nil mak|
|00000560| 65 73 20 60 68 69 70 70 | 69 65 2d 65 78 70 61 6e |es `hipp|ie-expan|
|00000570| 64 27 20 6f 75 74 70 75 | 74 20 77 68 69 63 68 20 |d' outpu|t which |
|00000580| 66 75 6e 63 74 69 6f 6e | 20 69 74 20 69 73 20 74 |function| it is t|
|00000590| 72 79 69 6e 67 2e 1f 0a | 28 64 65 66 76 61 72 20 |rying...|(defvar |
|000005a0| 68 69 70 70 69 65 2d 65 | 78 70 61 6e 64 2d 76 65 |hippie-e|xpand-ve|
|000005b0| 72 62 6f 73 65 20 74 20 | 28 23 24 20 2e 20 2d 31 |rbose t |(#$ . -1|
|000005c0| 33 36 34 29 29 0a 23 40 | 31 30 31 20 2a 54 68 65 |364)).#@|101 *The|
|000005d0| 20 6d 61 78 69 6d 75 6d | 20 6e 75 6d 62 65 72 20 | maximum| number |
|000005e0| 6f 66 20 62 75 66 66 65 | 72 73 20 28 61 70 61 72 |of buffe|rs (apar|
|000005f0| 74 20 66 72 6f 6d 20 74 | 68 65 20 63 75 72 72 65 |t from t|he curre|
|00000600| 6e 74 29 20 73 65 61 72 | 63 68 65 64 2e 0a 49 66 |nt) sear|ched..If|
|00000610| 20 6e 69 6c 2c 20 61 6c | 6c 20 62 75 66 66 65 72 | nil, al|l buffer|
|00000620| 73 20 61 72 65 20 73 65 | 61 72 63 68 65 64 2e 1f |s are se|arched..|
|00000630| 0a 28 64 65 66 76 61 72 | 20 68 69 70 70 69 65 2d |.(defvar| hippie-|
|00000640| 65 78 70 61 6e 64 2d 6d | 61 78 2d 62 75 66 66 65 |expand-m|ax-buffe|
|00000650| 72 73 20 6e 69 6c 20 28 | 23 24 20 2e 20 2d 31 34 |rs nil (|#$ . -14|
|00000660| 38 34 29 29 0a 23 40 31 | 35 33 20 2a 41 20 6c 69 |84)).#@1|53 *A li|
|00000670| 73 74 20 73 70 65 63 69 | 66 79 69 6e 67 20 77 68 |st speci|fying wh|
|00000680| 69 63 68 20 62 75 66 66 | 65 72 73 20 6e 6f 74 20 |ich buff|ers not |
|00000690| 74 6f 20 73 65 61 72 63 | 68 20 28 69 66 20 6e 6f |to searc|h (if no|
|000006a0| 74 20 63 75 72 72 65 6e | 74 29 2e 0a 43 61 6e 20 |t curren|t)..Can |
|000006b0| 63 6f 6e 74 61 69 6e 20 | 62 6f 74 68 20 72 65 67 |contain |both reg|
|000006c0| 65 78 70 73 20 6d 61 74 | 63 68 69 6e 67 20 62 75 |exps mat|ching bu|
|000006d0| 66 66 65 72 20 6e 61 6d | 65 73 20 28 61 73 20 73 |ffer nam|es (as s|
|000006e0| 74 72 69 6e 67 73 29 20 | 61 6e 64 20 6d 61 6a 6f |trings) |and majo|
|000006f0| 72 20 6d 6f 64 65 73 0a | 28 61 73 20 61 74 6f 6d |r modes.|(as atom|
|00000700| 73 29 1f 0a 28 64 65 66 | 76 61 72 20 68 69 70 70 |s)..(def|var hipp|
|00000710| 69 65 2d 65 78 70 61 6e | 64 2d 69 67 6e 6f 72 65 |ie-expan|d-ignore|
|00000720| 2d 62 75 66 66 65 72 73 | 20 28 71 75 6f 74 65 20 |-buffers| (quote |
|00000730| 28 22 5e 20 5c 5c 2a 2e | 2a 5c 5c 2a 24 22 20 64 |("^ \\*.|*\\*$" d|
|00000740| 69 72 65 64 2d 6d 6f 64 | 65 29 29 20 28 23 24 20 |ired-mod|e)) (#$ |
|00000750| 2e 20 2d 31 36 34 33 29 | 29 0a 23 40 34 33 30 20 |. -1643)|).#@430 |
|00000760| 54 72 79 20 74 6f 20 65 | 78 70 61 6e 64 20 74 65 |Try to e|xpand te|
|00000770| 78 74 20 62 65 66 6f 72 | 65 20 70 6f 69 6e 74 2c |xt befor|e point,|
|00000780| 20 75 73 69 6e 67 20 6d | 75 6c 74 69 70 6c 65 20 | using m|ultiple |
|00000790| 6d 65 74 68 6f 64 73 2e | 0a 54 68 65 20 65 78 70 |methods.|.The exp|
|000007a0| 61 6e 73 69 6f 6e 20 66 | 75 6e 63 74 69 6f 6e 73 |ansion f|unctions|
|000007b0| 20 69 6e 20 60 68 69 70 | 70 69 65 2d 65 78 70 61 | in `hip|pie-expa|
|000007c0| 6e 64 2d 74 72 79 2d 66 | 75 6e 63 74 69 6f 6e 73 |nd-try-f|unctions|
|000007d0| 2d 6c 69 73 74 27 20 61 | 72 65 0a 74 72 69 65 64 |-list' a|re.tried|
|000007e0| 20 69 6e 20 6f 72 64 65 | 72 2c 20 75 6e 74 69 6c | in orde|r, until|
|000007f0| 20 61 20 70 6f 73 73 69 | 62 6c 65 20 65 78 70 61 | a possi|ble expa|
|00000800| 6e 73 69 6f 6e 20 69 73 | 20 66 6f 75 6e 64 2e 20 |nsion is| found. |
|00000810| 20 52 65 70 65 61 74 65 | 64 0a 61 70 70 6c 69 63 | Repeate|d.applic|
|00000820| 61 74 69 6f 6e 20 6f 66 | 20 60 68 69 70 70 69 65 |ation of| `hippie|
|00000830| 2d 65 78 70 61 6e 64 27 | 20 69 6e 73 65 72 74 73 |-expand'| inserts|
|00000840| 20 73 75 63 63 65 73 73 | 69 76 65 6c 79 20 70 6f | success|ively po|
|00000850| 73 73 69 62 6c 65 0a 65 | 78 70 61 6e 73 69 6f 6e |ssible.e|xpansion|
|00000860| 73 2e 20 20 0a 57 69 74 | 68 20 61 20 70 6f 73 69 |s. .Wit|h a posi|
|00000870| 74 69 76 65 20 6e 75 6d | 65 72 69 63 20 61 72 67 |tive num|eric arg|
|00000880| 75 6d 65 6e 74 2c 20 6a | 75 6d 70 73 20 64 69 72 |ument, j|umps dir|
|00000890| 65 63 74 6c 79 20 74 6f | 20 74 68 65 20 41 52 47 |ectly to| the ARG|
|000008a0| 20 6e 65 78 74 0a 66 75 | 6e 63 74 69 6f 6e 20 69 | next.fu|nction i|
|000008b0| 6e 20 74 68 69 73 20 6c | 69 73 74 2e 20 20 57 69 |n this l|ist. Wi|
|000008c0| 74 68 20 61 20 6e 65 67 | 61 74 69 76 65 20 61 72 |th a neg|ative ar|
|000008d0| 67 75 6d 65 6e 74 20 6f | 72 20 6a 75 73 74 20 5c |gument o|r just \|
|000008e0| 5b 75 6e 69 76 65 72 73 | 61 6c 2d 61 72 67 75 6d |[univers|al-argum|
|000008f0| 65 6e 74 5d 2c 20 0a 75 | 6e 64 6f 65 73 20 74 68 |ent], .u|ndoes th|
|00000900| 65 20 65 78 70 61 6e 73 | 69 6f 6e 2e 1f 0a 28 64 |e expans|ion...(d|
|00000910| 65 66 61 6c 69 61 73 20 | 27 68 69 70 70 69 65 2d |efalias |'hippie-|
|00000920| 65 78 70 61 6e 64 20 23 | 5b 28 61 72 67 29 20 22 |expand #|[(arg) "|
|00000930| 08 83 0f 00 08 a8 83 97 | 00 08 c1 56 83 97 00 5c |........|...V...\|
|00000940| 6e c3 55 86 19 00 5c 66 | 0d 9a 3f 89 1e 06 83 24 |n.U...\f|..?....$|
|00000950| 00 c3 12 c7 16 08 08 83 | 33 00 0e 06 84 35 00 c9 |........|3....5..|
|00000960| 20 88 82 35 00 c1 10 5c | 6e 08 5c 5c c1 5d 89 1e | ..5...\|n.\\.]..|
|00000970| 5c 6e 0e 0b 47 59 84 5c | 5c 00 cc 0e 5c 6e 0e 0b |\n..GY.\|\...\n..|
|00000980| 38 5c 6e 0e 5c 6e 55 43 | 5c 22 84 5c 5c 00 0e 5c |8\n.\nUC|\".\\..\|
|00000990| 6e 54 89 16 5c 6e 82 3d | 00 0e 5c 6e 12 29 5c 6e |nT..\n.=|..\n.)\n|
|000009a0| 0e 0b 47 59 83 7f 00 c3 | 12 0e 06 83 76 00 cd ce |..GY....|....v...|
|000009b0| 21 88 82 7a 00 cd cf 21 | 88 d0 20 82 95 00 0e 11 |!..z...!|.. .....|
|000009c0| 85 95 00 d2 d3 20 21 3f | 85 95 00 cd d4 d5 5c 6e |..... !?|......\n|
|000009d0| 0e 0b 38 21 5c 22 29 87 | 5c 6e c1 59 85 bb 00 d6 |..8!\").|\n.Y....|
|000009e0| 0e 17 21 70 3d 85 bb 00 | c3 12 c9 20 88 0e 11 85 |..!p=...|... ....|
|000009f0| bb 00 d2 d3 20 21 3f 85 | bb 00 cd d8 21 87 22 20 |.... !?.|....!." |
|00000a00| 5b 61 72 67 20 30 20 68 | 65 2d 6e 75 6d 20 2d 31 |[arg 0 h|e-num -1|
|00000a10| 20 74 68 69 73 2d 63 6f | 6d 6d 61 6e 64 20 6c 61 | this-co|mmand la|
|00000a20| 73 74 2d 63 6f 6d 6d 61 | 6e 64 20 66 69 72 73 74 |st-comma|nd first|
|00000a30| 20 6e 69 6c 20 68 65 2d | 74 72 69 65 64 2d 74 61 | nil he-|tried-ta|
|00000a40| 62 6c 65 20 68 65 2d 72 | 65 73 65 74 2d 73 74 72 |ble he-r|eset-str|
|00000a50| 69 6e 67 20 69 20 68 69 | 70 70 69 65 2d 65 78 70 |ing i hi|ppie-exp|
|00000a60| 61 6e 64 2d 74 72 79 2d | 66 75 6e 63 74 69 6f 6e |and-try-|function|
|00000a70| 73 2d 6c 69 73 74 20 61 | 70 70 6c 79 20 6d 65 73 |s-list a|pply mes|
|00000a80| 73 61 67 65 20 22 4e 6f | 20 65 78 70 61 6e 73 69 |sage "No| expansi|
|00000a90| 6f 6e 20 66 6f 75 6e 64 | 22 20 22 4e 6f 20 66 75 |on found|" "No fu|
|00000aa0| 72 74 68 65 72 20 65 78 | 70 61 6e 73 69 6f 6e 73 |rther ex|pansions|
|00000ab0| 20 66 6f 75 6e 64 22 20 | 64 69 6e 67 20 68 69 70 | found" |ding hip|
|00000ac0| 70 69 65 2d 65 78 70 61 | 6e 64 2d 76 65 72 62 6f |pie-expa|nd-verbo|
|00000ad0| 73 65 20 77 69 6e 64 6f | 77 2d 6d 69 6e 69 62 75 |se windo|w-minibu|
|00000ae0| 66 66 65 72 2d 70 20 73 | 65 6c 65 63 74 65 64 2d |ffer-p s|elected-|
|00000af0| 77 69 6e 64 6f 77 20 22 | 55 73 69 6e 67 20 25 73 |window "|Using %s|
|00000b00| 22 20 70 72 69 6e 31 2d | 74 6f 2d 73 74 72 69 6e |" prin1-|to-strin|
|00000b10| 67 20 6d 61 72 6b 65 72 | 2d 62 75 66 66 65 72 20 |g marker|-buffer |
|00000b20| 68 65 2d 73 74 72 69 6e | 67 2d 62 65 67 20 22 55 |he-strin|g-beg "U|
|00000b30| 6e 64 6f 69 6e 67 20 65 | 78 70 61 6e 73 69 6f 6e |ndoing e|xpansion|
|00000b40| 73 22 5d 20 36 20 28 23 | 24 20 2e 20 31 38 38 38 |s"] 6 (#|$ . 1888|
|00000b50| 29 20 22 50 22 5d 29 0a | 28 64 65 66 61 6c 69 61 |) "P"]).|(defalia|
|00000b60| 73 20 27 68 65 2d 69 6e | 69 74 2d 73 74 72 69 6e |s 'he-in|it-strin|
|00000b70| 67 20 23 5b 28 62 65 67 | 20 65 6e 64 29 20 22 08 |g #[(beg| end) ".|
|00000b80| 09 c2 93 88 0b 5c 66 c2 | 93 88 09 5c 66 7b 89 15 |.....\f.|...\f{..|
|00000b90| 87 22 20 5b 68 65 2d 73 | 74 72 69 6e 67 2d 62 65 |." [he-s|tring-be|
|00000ba0| 67 20 62 65 67 20 6e 69 | 6c 20 68 65 2d 73 74 72 |g beg ni|l he-str|
|00000bb0| 69 6e 67 2d 65 6e 64 20 | 65 6e 64 20 68 65 2d 73 |ing-end |end he-s|
|00000bc0| 65 61 72 63 68 2d 73 74 | 72 69 6e 67 5d 20 33 5d |earch-st|ring] 3]|
|00000bd0| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 68 65 2d |).(defal|ias 'he-|
|00000be0| 72 65 73 65 74 2d 73 74 | 72 69 6e 67 20 23 5b 6e |reset-st|ring #[n|
|00000bf0| 69 6c 20 22 c0 20 19 5c | 6e 62 88 0b 63 88 60 5c |il ". .\|nb..c.`\|
|00000c00| 66 7c 88 09 62 29 87 22 | 20 5b 70 6f 69 6e 74 2d |f|..b)."| [point-|
|00000c10| 6d 61 72 6b 65 72 20 6e | 65 77 70 6f 73 20 68 65 |marker n|ewpos he|
|00000c20| 2d 73 74 72 69 6e 67 2d | 62 65 67 20 68 65 2d 73 |-string-|beg he-s|
|00000c30| 65 61 72 63 68 2d 73 74 | 72 69 6e 67 20 68 65 2d |earch-st|ring he-|
|00000c40| 73 74 72 69 6e 67 2d 65 | 6e 64 5d 20 32 5d 29 0a |string-e|nd] 2]).|
|00000c50| 28 64 65 66 61 6c 69 61 | 73 20 27 68 65 2d 73 75 |(defalia|s 'he-su|
|00000c60| 62 73 74 69 74 75 74 65 | 2d 73 74 72 69 6e 67 20 |bstitute|-string |
|00000c70| 23 5b 28 73 74 72 20 26 | 6f 70 74 69 6f 6e 61 6c |#[(str &|optional|
|00000c80| 20 74 72 61 6e 73 2d 63 | 61 73 65 29 20 22 08 85 | trans-c|ase) "..|
|00000c90| 09 00 09 85 09 00 5c 6e | c3 20 c4 1d 1e 06 18 0e |......\n|. ......|
|00000ca0| 07 62 88 08 83 21 00 c8 | 0e 09 0e 5c 6e 5c 22 82 |.b...!..|...\n\".|
|00000cb0| 23 00 0e 5c 6e 89 15 0e | 0b 42 16 0b 0d 63 88 60 |#..\n...|.B...c.`|
|00000cc0| 0e 5c 66 7c 88 0e 06 62 | 2b 87 22 20 5b 74 72 61 |.\f|...b|+." [tra|
|00000cd0| 6e 73 2d 63 61 73 65 20 | 63 61 73 65 2d 72 65 70 |ns-case |case-rep|
|00000ce0| 6c 61 63 65 20 63 61 73 | 65 2d 66 6f 6c 64 2d 73 |lace cas|e-fold-s|
|00000cf0| 65 61 72 63 68 20 70 6f | 69 6e 74 2d 6d 61 72 6b |earch po|int-mark|
|00000d00| 65 72 20 6e 69 6c 20 73 | 75 62 73 74 20 6e 65 77 |er nil s|ubst new|
|00000d10| 70 6f 73 20 68 65 2d 73 | 74 72 69 6e 67 2d 62 65 |pos he-s|tring-be|
|00000d20| 67 20 68 65 2d 74 72 61 | 6e 73 66 65 72 2d 63 61 |g he-tra|nsfer-ca|
|00000d30| 73 65 20 68 65 2d 73 65 | 61 72 63 68 2d 73 74 72 |se he-se|arch-str|
|00000d40| 69 6e 67 20 73 74 72 20 | 68 65 2d 74 72 69 65 64 |ing str |he-tried|
|00000d50| 2d 74 61 62 6c 65 20 68 | 65 2d 73 74 72 69 6e 67 |-table h|e-string|
|00000d60| 2d 65 6e 64 5d 20 34 5d | 29 0a 28 64 65 66 61 6c |-end] 4]|).(defal|
|00000d70| 69 61 73 20 27 68 65 2d | 63 61 70 69 74 61 6c 69 |ias 'he-|capitali|
|00000d80| 7a 65 2d 66 69 72 73 74 | 20 23 5b 28 73 74 72 29 |ze-first| #[(str)|
|00000d90| 20 22 c0 20 19 c2 8e c3 | c4 0d 5c 22 83 24 00 0d | ". ....|..\".$..|
|00000da0| 97 c6 94 1e 07 89 1e 08 | 0e 07 0d 0e 07 48 96 49 |........|.....H.I|
|00000db0| 88 0e 08 2a 82 25 00 0d | 2a 87 22 20 5b 6d 61 74 |...*.%..|*." [mat|
|00000dc0| 63 68 2d 64 61 74 61 20 | 6d 61 74 63 68 2d 64 61 |ch-data |match-da|
|00000dd0| 74 61 20 28 28 73 74 6f | 72 65 2d 6d 61 74 63 68 |ta ((sto|re-match|
|00000de0| 2d 64 61 74 61 20 6d 61 | 74 63 68 2d 64 61 74 61 |-data ma|tch-data|
|00000df0| 29 29 20 73 74 72 69 6e | 67 2d 6d 61 74 63 68 20 |)) strin|g-match |
|00000e00| 22 5c 5c 53 77 2a 5c 5c | 28 5c 5c 73 77 5c 5c 29 |"\\Sw*\\|(\\sw\\)|
|00000e10| 2e 2a 22 20 73 74 72 20 | 31 20 6e 6f 20 72 65 73 |.*" str |1 no res|
|00000e20| 5d 20 35 5d 29 0a 28 64 | 65 66 61 6c 69 61 73 20 |] 5]).(d|efalias |
|00000e30| 27 68 65 2d 6f 72 64 69 | 6e 61 72 79 2d 63 61 73 |'he-ordi|nary-cas|
|00000e40| 65 2d 70 20 23 5b 28 73 | 74 72 29 20 22 08 89 97 |e-p #[(s|tr) "...|
|00000e50| 98 86 1b 00 08 89 96 98 | 86 1b 00 08 c1 08 21 98 |........|......!.|
|00000e60| 86 1b 00 08 c2 08 21 98 | 87 22 20 5b 73 74 72 20 |......!.|." [str |
|00000e70| 63 61 70 69 74 61 6c 69 | 7a 65 20 68 65 2d 63 61 |capitali|ze he-ca|
|00000e80| 70 69 74 61 6c 69 7a 65 | 2d 66 69 72 73 74 5d 20 |pitalize|-first] |
|00000e90| 33 5d 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 68 |3]).(def|alias 'h|
|00000ea0| 65 2d 74 72 61 6e 73 66 | 65 72 2d 63 61 73 65 20 |e-transf|er-case |
|00000eb0| 23 5b 28 66 72 6f 6d 2d | 73 74 72 20 74 6f 2d 73 |#[(from-|str to-s|
|00000ec0| 74 72 29 20 22 08 09 c2 | 08 47 09 47 5e 4f 98 83 |tr) "...|.G.G^O..|
|00000ed0| 0f 00 09 87 c3 09 21 84 | 17 00 09 87 08 89 97 98 |......!.|........|
|00000ee0| 83 21 00 09 97 87 08 89 | 96 98 83 2b 00 09 96 87 |.!......|...+....|
|00000ef0| 08 c4 08 21 98 83 37 00 | c4 09 21 87 08 c5 08 21 |...!..7.|..!....!|
|00000f00| 98 83 43 00 c5 09 21 87 | 09 87 22 20 5b 66 72 6f |..C...!.|.." [fro|
|00000f10| 6d 2d 73 74 72 20 74 6f | 2d 73 74 72 20 30 20 68 |m-str to|-str 0 h|
|00000f20| 65 2d 6f 72 64 69 6e 61 | 72 79 2d 63 61 73 65 2d |e-ordina|ry-case-|
|00000f30| 70 20 68 65 2d 63 61 70 | 69 74 61 6c 69 7a 65 2d |p he-cap|italize-|
|00000f40| 66 69 72 73 74 20 63 61 | 70 69 74 61 6c 69 7a 65 |first ca|pitalize|
|00000f50| 5d 20 35 5d 29 0a 28 64 | 65 66 61 6c 69 61 73 20 |] 5]).(d|efalias |
|00000f60| 27 68 65 2d 73 74 72 69 | 6e 67 2d 6d 65 6d 62 65 |'he-stri|ng-membe|
|00000f70| 72 20 23 5b 28 73 74 72 | 20 6c 73 74 20 26 6f 70 |r #[(str| lst &op|
|00000f80| 74 69 6f 6e 61 6c 20 74 | 72 61 6e 73 2d 63 61 73 |tional t|rans-cas|
|00000f90| 65 29 20 22 08 85 1b 00 | 09 83 17 00 5c 6e 83 17 |e) "....|....\n..|
|00000fa0| 00 0b 83 17 00 c4 0d 08 | 5c 22 82 18 00 08 0e 06 |........|\"......|
|00000fb0| 9d 87 22 20 5b 73 74 72 | 20 74 72 61 6e 73 2d 63 |.." [str| trans-c|
|00000fc0| 61 73 65 20 63 61 73 65 | 2d 72 65 70 6c 61 63 65 |ase case|-replace|
|00000fd0| 20 63 61 73 65 2d 66 6f | 6c 64 2d 73 65 61 72 63 | case-fo|ld-searc|
|00000fe0| 68 20 68 65 2d 74 72 61 | 6e 73 66 65 72 2d 63 61 |h he-tra|nsfer-ca|
|00000ff0| 73 65 20 68 65 2d 73 65 | 61 72 63 68 2d 73 74 72 |se he-se|arch-str|
|00001000| 69 6e 67 20 6c 73 74 5d | 20 33 5d 29 0a 28 64 65 |ing lst]| 3]).(de|
|00001010| 66 61 6c 69 61 73 20 27 | 68 65 2d 72 65 67 65 78 |falias '|he-regex|
|00001020| 70 2d 6d 65 6d 62 65 72 | 20 23 5b 28 73 74 72 20 |p-member| #[(str |
|00001030| 6c 73 74 29 20 22 08 83 | 19 00 08 40 3b 83 12 00 |lst) "..|...@;...|
|00001040| c1 08 40 5c 6e 5c 22 84 | 19 00 08 41 89 10 84 04 |..@\n\".|...A....|
|00001050| 00 08 87 22 20 5b 6c 73 | 74 20 73 74 72 69 6e 67 |..." [ls|t string|
|00001060| 2d 6d 61 74 63 68 20 73 | 74 72 5d 20 34 5d 29 0a |-match s|tr] 4]).|
|00001070| 23 40 31 37 32 20 43 6f | 6e 73 74 72 75 63 74 20 |#@172 Co|nstruct |
|00001080| 61 20 66 75 6e 63 74 69 | 6f 6e 20 73 69 6d 69 6c |a functi|on simil|
|00001090| 61 72 20 74 6f 20 60 68 | 69 70 70 69 65 2d 65 78 |ar to `h|ippie-ex|
|000010a0| 70 61 6e 64 27 2e 0a 4d | 61 6b 65 20 69 74 20 75 |pand'..M|ake it u|
|000010b0| 73 65 20 74 68 65 20 65 | 78 70 61 6e 73 69 6f 6e |se the e|xpansion|
|000010c0| 20 66 75 6e 63 74 69 6f | 6e 73 20 69 6e 20 54 52 | functio|ns in TR|
|000010d0| 59 2d 4c 49 53 54 2e 20 | 20 41 6e 20 6f 70 74 69 |Y-LIST. | An opti|
|000010e0| 6f 6e 61 6c 20 73 65 63 | 6f 6e 64 0a 61 72 67 75 |onal sec|ond.argu|
|000010f0| 6d 65 6e 74 20 56 45 52 | 42 4f 53 45 20 6e 6f 6e |ment VER|BOSE non|
|00001100| 2d 6e 69 6c 20 6d 61 6b | 65 73 20 74 68 65 20 66 |-nil mak|es the f|
|00001110| 75 6e 63 74 69 6f 6e 20 | 76 65 72 62 6f 73 65 2e |unction |verbose.|
|00001120| 1f 0a 28 64 65 66 61 6c | 69 61 73 20 27 6d 61 6b |..(defal|ias 'mak|
|00001130| 65 2d 68 69 70 70 69 65 | 2d 65 78 70 61 6e 64 2d |e-hippie|-expand-|
|00001140| 66 75 6e 63 74 69 6f 6e | 20 27 28 6d 61 63 72 6f |function| '(macro|
|00001150| 20 2e 20 23 5b 28 74 72 | 79 2d 6c 69 73 74 20 26 | . #[(tr|y-list &|
|00001160| 6f 70 74 69 6f 6e 61 6c | 20 76 65 72 62 6f 73 65 |optional| verbose|
|00001170| 29 20 22 c0 c1 c2 c3 c4 | c5 c6 0e 07 21 c8 23 50 |) ".....|....!.#P|
|00001180| c9 ca cb 0e 07 44 cc 0e | 0d 44 44 ce 42 42 af 05 |.....D..|.DD.BB..|
|00001190| 44 87 22 20 5b 66 75 6e | 63 74 69 6f 6e 20 6c 61 |D." [fun|ction la|
|000011a0| 6d 62 64 61 20 28 61 72 | 67 29 20 22 54 72 79 20 |mbda (ar|g) "Try |
|000011b0| 74 6f 20 65 78 70 61 6e | 64 20 74 65 78 74 20 62 |to expan|d text b|
|000011c0| 65 66 6f 72 65 20 70 6f | 69 6e 74 2c 20 75 73 69 |efore po|int, usi|
|000011d0| 6e 67 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ng the f|ollowing|
|000011e0| 20 66 75 6e 63 74 69 6f | 6e 73 3a 20 5c 6e 22 20 | functio|ns: \n" |
|000011f0| 6d 61 70 63 6f 6e 63 61 | 74 20 70 72 69 6e 31 2d |mapconca|t prin1-|
|00001200| 74 6f 2d 73 74 72 69 6e | 67 20 65 76 61 6c 20 74 |to-strin|g eval t|
|00001210| 72 79 2d 6c 69 73 74 20 | 22 2c 20 22 20 28 69 6e |ry-list |", " (in|
|00001220| 74 65 72 61 63 74 69 76 | 65 20 22 50 22 29 20 6c |teractiv|e "P") l|
|00001230| 65 74 20 68 69 70 70 69 | 65 2d 65 78 70 61 6e 64 |et hippi|e-expand|
|00001240| 2d 74 72 79 2d 66 75 6e | 63 74 69 6f 6e 73 2d 6c |-try-fun|ctions-l|
|00001250| 69 73 74 20 68 69 70 70 | 69 65 2d 65 78 70 61 6e |ist hipp|ie-expan|
|00001260| 64 2d 76 65 72 62 6f 73 | 65 20 76 65 72 62 6f 73 |d-verbos|e verbos|
|00001270| 65 20 28 28 68 69 70 70 | 69 65 2d 65 78 70 61 6e |e ((hipp|ie-expan|
|00001280| 64 20 61 72 67 29 29 5d | 20 39 20 28 23 24 20 2e |d arg))]| 9 (#$ .|
|00001290| 20 34 32 31 34 29 5d 29 | 29 0a 23 40 32 34 33 20 | 4214)])|).#@243 |
|000012a0| 54 72 79 20 74 6f 20 63 | 6f 6d 70 6c 65 74 65 20 |Try to c|omplete |
|000012b0| 74 65 78 74 20 61 73 20 | 61 20 66 69 6c 65 20 6e |text as |a file n|
|000012c0| 61 6d 65 2e 0a 54 68 65 | 20 61 72 67 75 6d 65 6e |ame..The| argumen|
|000012d0| 74 20 4f 4c 44 20 68 61 | 73 20 74 6f 20 62 65 20 |t OLD ha|s to be |
|000012e0| 6e 69 6c 20 74 68 65 20 | 66 69 72 73 74 20 63 61 |nil the |first ca|
|000012f0| 6c 6c 20 6f 66 20 74 68 | 69 73 20 66 75 6e 63 74 |ll of th|is funct|
|00001300| 69 6f 6e 2c 20 61 6e 64 | 20 74 0a 66 6f 72 20 73 |ion, and| t.for s|
|00001310| 75 62 73 65 71 75 65 6e | 74 20 63 61 6c 6c 73 20 |ubsequen|t calls |
|00001320| 28 66 6f 72 20 66 75 72 | 74 68 65 72 20 70 6f 73 |(for fur|ther pos|
|00001330| 73 69 62 6c 65 20 63 6f | 6d 70 6c 65 74 69 6f 6e |sible co|mpletion|
|00001340| 73 20 6f 66 20 74 68 65 | 20 73 61 6d 65 0a 73 74 |s of the| same.st|
|00001350| 72 69 6e 67 29 2e 20 20 | 49 74 20 72 65 74 75 72 |ring). |It retur|
|00001360| 6e 73 20 74 20 69 66 20 | 61 20 6e 65 77 20 63 6f |ns t if |a new co|
|00001370| 6d 70 6c 65 74 69 6f 6e | 20 69 73 20 66 6f 75 6e |mpletion| is foun|
|00001380| 64 2c 20 6e 69 6c 20 6f | 74 68 65 72 77 69 73 65 |d, nil o|therwise|
|00001390| 2e 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 74 72 |...(defa|lias 'tr|
|000013a0| 79 2d 63 6f 6d 70 6c 65 | 74 65 2d 66 69 6c 65 2d |y-comple|te-file-|
|000013b0| 6e 61 6d 65 20 23 5b 28 | 6f 6c 64 29 20 22 08 84 |name #[(|old) "..|
|000013c0| 49 00 c1 c2 20 60 5c 22 | 88 c3 5c 66 21 c5 c6 5c |I... `\"|..\f!..\|
|000013d0| 66 21 86 15 00 c7 21 1e | 08 1e 09 ca 0e 09 0e 0b |f!....!.|........|
|000013e0| 5c 22 84 2a 00 0e 09 0e | 0b 42 16 0b 5c 66 c7 9a |\".*....|.B..\f..|
|000013f0| 84 45 00 cc 0e 08 21 83 | 45 00 cd ce 0e 09 0e 08 |.E....!.|E.......|
|00001400| 5c 22 cf 5c 22 16 10 82 | 48 00 d1 16 10 2a 0e 10 |\".\"...|H....*..|
|00001410| 83 61 00 ca 0e 10 40 0e | 0b 5c 22 83 61 00 0e 10 |.a....@.|.\".a...|
|00001420| 41 89 16 10 84 4e 00 0e | 10 84 6f 00 08 83 6d 00 |A....N..|..o...m.|
|00001430| d2 20 88 d1 87 d3 c6 5c | 66 21 0e 10 40 5c 22 1e |. .....\|f!..@\".|
|00001440| 14 d5 0e 14 21 88 0e 10 | 40 0e 0b 41 42 16 0b 0e |....!...|@..AB...|
|00001450| 10 41 16 10 29 d6 87 22 | 20 5b 6f 6c 64 20 68 65 |.A..).."| [old he|
|00001460| 2d 69 6e 69 74 2d 73 74 | 72 69 6e 67 20 68 65 2d |-init-st|ring he-|
|00001470| 66 69 6c 65 2d 6e 61 6d | 65 2d 62 65 67 20 68 65 |file-nam|e-beg he|
|00001480| 2d 66 69 6c 65 2d 6e 61 | 6d 65 2d 6e 6f 6e 64 69 |-file-na|me-nondi|
|00001490| 72 65 63 74 6f 72 79 20 | 68 65 2d 73 65 61 72 63 |rectory |he-searc|
|000014a0| 68 2d 73 74 72 69 6e 67 | 20 65 78 70 61 6e 64 2d |h-string| expand-|
|000014b0| 66 69 6c 65 2d 6e 61 6d | 65 20 68 65 2d 66 69 6c |file-nam|e he-fil|
|000014c0| 65 2d 6e 61 6d 65 2d 64 | 69 72 65 63 74 6f 72 79 |e-name-d|irectory|
|000014d0| 20 22 22 20 64 69 72 2d | 70 61 72 74 20 6e 61 6d | "" dir-|part nam|
|000014e0| 65 2d 70 61 72 74 20 68 | 65 2d 73 74 72 69 6e 67 |e-part h|e-string|
|000014f0| 2d 6d 65 6d 62 65 72 20 | 68 65 2d 74 72 69 65 64 |-member |he-tried|
|00001500| 2d 74 61 62 6c 65 20 68 | 65 2d 66 69 6c 65 2d 64 |-table h|e-file-d|
|00001510| 69 72 65 63 74 6f 72 79 | 2d 70 20 73 6f 72 74 20 |irectory|-p sort |
|00001520| 66 69 6c 65 2d 6e 61 6d | 65 2d 61 6c 6c 2d 63 6f |file-nam|e-all-co|
|00001530| 6d 70 6c 65 74 69 6f 6e | 73 20 73 74 72 69 6e 67 |mpletion|s string|
|00001540| 2d 6c 65 73 73 70 20 68 | 65 2d 65 78 70 61 6e 64 |-lessp h|e-expand|
|00001550| 2d 6c 69 73 74 20 6e 69 | 6c 20 68 65 2d 72 65 73 |-list ni|l he-res|
|00001560| 65 74 2d 73 74 72 69 6e | 67 20 68 65 2d 63 6f 6e |et-strin|g he-con|
|00001570| 63 61 74 2d 64 69 72 65 | 63 74 6f 72 79 2d 66 69 |cat-dire|ctory-fi|
|00001580| 6c 65 2d 6e 61 6d 65 20 | 66 69 6c 65 6e 61 6d 65 |le-name |filename|
|00001590| 20 68 65 2d 73 75 62 73 | 74 69 74 75 74 65 2d 73 | he-subs|titute-s|
|000015a0| 74 72 69 6e 67 20 74 5d | 20 35 20 28 23 24 20 2e |tring t]| 5 (#$ .|
|000015b0| 20 34 37 36 38 29 5d 29 | 0a 23 40 32 31 34 20 54 | 4768)])|.#@214 T|
|000015c0| 72 79 20 74 6f 20 63 6f | 6d 70 6c 65 74 65 20 74 |ry to co|mplete t|
|000015d0| 65 78 74 20 61 73 20 61 | 20 66 69 6c 65 20 6e 61 |ext as a| file na|
|000015e0| 6d 65 2c 20 61 73 20 6d | 61 6e 79 20 63 68 61 72 |me, as m|any char|
|000015f0| 61 63 74 65 72 73 20 61 | 73 20 75 6e 69 71 75 65 |acters a|s unique|
|00001600| 2e 0a 54 68 65 20 61 72 | 67 75 6d 65 6e 74 20 4f |..The ar|gument O|
|00001610| 4c 44 20 68 61 73 20 74 | 6f 20 62 65 20 6e 69 6c |LD has t|o be nil|
|00001620| 20 74 68 65 20 66 69 72 | 73 74 20 63 61 6c 6c 20 | the fir|st call |
|00001630| 6f 66 20 74 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |of this |function|
|00001640| 2e 20 20 49 74 0a 72 65 | 74 75 72 6e 73 20 74 20 |. It.re|turns t |
|00001650| 69 66 20 61 20 75 6e 69 | 71 75 65 2c 20 70 6f 73 |if a uni|que, pos|
|00001660| 73 69 62 6c 79 20 70 61 | 72 74 69 61 6c 2c 20 63 |sibly pa|rtial, c|
|00001670| 6f 6d 70 6c 65 74 69 6f | 6e 20 69 73 20 66 6f 75 |ompletio|n is fou|
|00001680| 6e 64 2c 20 6e 69 6c 20 | 0a 6f 74 68 65 72 77 69 |nd, nil |.otherwi|
|00001690| 73 65 2e 1f 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |se...(de|falias '|
|000016a0| 74 72 79 2d 63 6f 6d 70 | 6c 65 74 65 2d 66 69 6c |try-comp|lete-fil|
|000016b0| 65 2d 6e 61 6d 65 2d 70 | 61 72 74 69 61 6c 6c 79 |e-name-p|artially|
|000016c0| 20 23 5b 28 6f 6c 64 29 | 20 22 c0 19 5c 6e 84 4b | #[(old)| "..\n.K|
|000016d0| 00 c3 c4 20 60 5c 22 88 | c5 0e 06 21 c7 c8 0e 06 |... `\".|...!....|
|000016e0| 21 86 19 00 c9 21 1e 5c | 6e 1e 0b 0e 06 c9 9a 84 |!....!.\|n.......|
|000016f0| 33 00 cc 0e 5c 6e 21 83 | 33 00 cd 0e 0b 0e 5c 6e |3...\n!.|3.....\n|
|00001700| 5c 22 11 09 ce 3d 84 48 | 00 09 0e 0b 98 84 48 00 |\"...=.H|......H.|
|00001710| cf 09 0e 10 5c 22 83 4a | 00 c0 11 2a 09 84 5a 00 |....\".J|...*..Z.|
|00001720| 5c 6e 83 56 00 d1 20 88 | c0 82 71 00 d2 c8 0e 06 |\n.V.. .|..q.....|
|00001730| 21 09 5c 22 1e 13 d4 0e | 13 21 88 09 0e 10 41 42 |!.\"....|.!....AB|
|00001740| 16 10 29 ce 29 87 22 20 | 5b 6e 69 6c 20 65 78 70 |..).)." |[nil exp|
|00001750| 61 6e 73 69 6f 6e 20 6f | 6c 64 20 68 65 2d 69 6e |ansion o|ld he-in|
|00001760| 69 74 2d 73 74 72 69 6e | 67 20 68 65 2d 66 69 6c |it-strin|g he-fil|
|00001770| 65 2d 6e 61 6d 65 2d 62 | 65 67 20 68 65 2d 66 69 |e-name-b|eg he-fi|
|00001780| 6c 65 2d 6e 61 6d 65 2d | 6e 6f 6e 64 69 72 65 63 |le-name-|nondirec|
|00001790| 74 6f 72 79 20 68 65 2d | 73 65 61 72 63 68 2d 73 |tory he-|search-s|
|000017a0| 74 72 69 6e 67 20 65 78 | 70 61 6e 64 2d 66 69 6c |tring ex|pand-fil|
|000017b0| 65 2d 6e 61 6d 65 20 68 | 65 2d 66 69 6c 65 2d 6e |e-name h|e-file-n|
|000017c0| 61 6d 65 2d 64 69 72 65 | 63 74 6f 72 79 20 22 22 |ame-dire|ctory ""|
|000017d0| 20 64 69 72 2d 70 61 72 | 74 20 6e 61 6d 65 2d 70 | dir-par|t name-p|
|000017e0| 61 72 74 20 68 65 2d 66 | 69 6c 65 2d 64 69 72 65 |art he-f|ile-dire|
|000017f0| 63 74 6f 72 79 2d 70 20 | 66 69 6c 65 2d 6e 61 6d |ctory-p |file-nam|
|00001800| 65 2d 63 6f 6d 70 6c 65 | 74 69 6f 6e 20 74 20 68 |e-comple|tion t h|
|00001810| 65 2d 73 74 72 69 6e 67 | 2d 6d 65 6d 62 65 72 20 |e-string|-member |
|00001820| 68 65 2d 74 72 69 65 64 | 2d 74 61 62 6c 65 20 68 |he-tried|-table h|
|00001830| 65 2d 72 65 73 65 74 2d | 73 74 72 69 6e 67 20 68 |e-reset-|string h|
|00001840| 65 2d 63 6f 6e 63 61 74 | 2d 64 69 72 65 63 74 6f |e-concat|-directo|
|00001850| 72 79 2d 66 69 6c 65 2d | 6e 61 6d 65 20 66 69 6c |ry-file-|name fil|
|00001860| 65 6e 61 6d 65 20 68 65 | 2d 73 75 62 73 74 69 74 |ename he|-substit|
|00001870| 75 74 65 2d 73 74 72 69 | 6e 67 5d 20 34 20 28 23 |ute-stri|ng] 4 (#|
|00001880| 24 20 2e 20 35 35 36 37 | 29 5d 29 0a 23 40 36 35 |$ . 5567|)]).#@65|
|00001890| 20 43 68 61 72 61 63 74 | 65 72 73 20 74 68 61 74 | Charact|ers that|
|000018a0| 20 61 72 65 20 63 6f 6e | 73 69 64 65 72 65 64 20 | are con|sidered |
|000018b0| 70 61 72 74 20 6f 66 20 | 74 68 65 20 66 69 6c 65 |part of |the file|
|000018c0| 20 6e 61 6d 65 20 74 6f | 20 65 78 70 61 6e 64 2e | name to| expand.|
|000018d0| 1f 0a 28 64 65 66 76 61 | 72 20 68 65 2d 66 69 6c |..(defva|r he-fil|
|000018e0| 65 2d 6e 61 6d 65 2d 63 | 68 61 72 73 20 28 62 79 |e-name-c|hars (by|
|000018f0| 74 65 2d 63 6f 64 65 20 | 22 08 c1 3e 83 08 00 c2 |te-code |"..>....|
|00001900| 87 08 c3 3e 83 10 00 c4 | 87 c5 87 22 20 5b 73 79 |...>....|..." [sy|
|00001910| 73 74 65 6d 2d 74 79 70 | 65 20 28 76 61 78 2d 76 |stem-typ|e (vax-v|
|00001920| 6d 73 20 61 78 70 2d 76 | 6d 73 29 20 22 2d 61 2d |ms axp-v|ms) "-a-|
|00001930| 7a 41 2d 5a 30 2d 39 5f | 2f 2e 2c 7e 5e 23 24 2b |zA-Z0-9_|/.,~^#$+|
|00001940| 3d 3a 5c 5c 5b 5c 5c 5d | 22 20 28 6d 73 2d 64 6f |=:\\[\\]|" (ms-do|
|00001950| 73 20 77 69 6e 64 6f 77 | 73 2d 6e 74 29 20 22 2d |s window|s-nt) "-|
|00001960| 61 2d 7a 41 2d 5a 30 2d | 39 5f 2f 2e 2c 7e 5e 23 |a-zA-Z0-|9_/.,~^#|
|00001970| 24 2b 3d 3a 5c 5c 5c 5c | 22 20 22 2d 61 2d 7a 41 |$+=:\\\\|" "-a-zA|
|00001980| 2d 5a 30 2d 39 5f 2f 2e | 2c 7e 5e 23 24 2b 3d 22 |-Z0-9_/.|,~^#$+="|
|00001990| 5d 20 32 29 20 28 23 24 | 20 2e 20 36 32 38 39 29 |] 2) (#$| . 6289)|
|000019a0| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 68 65 2d |).(defal|ias 'he-|
|000019b0| 66 69 6c 65 2d 6e 61 6d | 65 2d 62 65 67 20 23 5b |file-nam|e-beg #[|
|000019c0| 6e 69 6c 20 22 8a 08 c1 | 78 88 60 29 87 22 20 5b |nil "...|x.`)." [|
|000019d0| 68 65 2d 66 69 6c 65 2d | 6e 61 6d 65 2d 63 68 61 |he-file-|name-cha|
|000019e0| 72 73 20 6e 69 6c 5d 20 | 32 5d 29 0a 23 40 37 32 |rs nil] |2]).#@72|
|000019f0| 20 46 69 78 20 74 6f 20 | 6d 61 6b 65 20 60 66 69 | Fix to |make `fi|
|00001a00| 6c 65 2d 6e 61 6d 65 2d | 6e 6f 6e 64 69 72 65 63 |le-name-|nondirec|
|00001a10| 74 6f 72 79 27 20 77 6f | 72 6b 20 66 6f 72 20 68 |tory' wo|rk for h|
|00001a20| 69 70 70 69 65 2d 65 78 | 70 61 6e 64 20 75 6e 64 |ippie-ex|pand und|
|00001a30| 65 72 20 56 4d 53 2e 1f | 0a 28 64 65 66 61 6c 69 |er VMS..|.(defali|
|00001a40| 61 73 20 27 68 65 2d 66 | 69 6c 65 2d 6e 61 6d 65 |as 'he-f|ile-name|
|00001a50| 2d 6e 6f 6e 64 69 72 65 | 63 74 6f 72 79 20 23 5b |-nondire|ctory #[|
|00001a60| 28 66 69 6c 65 29 20 22 | 08 c1 3e 83 1f 00 c2 0b |(file) "|..>.....|
|00001a70| 21 1c c5 c6 5c 66 5c 22 | 83 1c 00 c7 5c 66 c8 94 |!...\f\"|....\f..|
|00001a80| c8 95 4f 50 82 1d 00 5c | 66 29 87 c2 0b 21 87 22 |..OP...\|f)...!."|
|00001a90| 20 5b 73 79 73 74 65 6d | 2d 74 79 70 65 20 28 61 | [system|-type (a|
|00001aa0| 78 70 2d 76 6d 73 20 76 | 61 78 2d 76 6d 73 29 20 |xp-vms v|ax-vms) |
|00001ab0| 66 69 6c 65 2d 6e 61 6d | 65 2d 6e 6f 6e 64 69 72 |file-nam|e-nondir|
|00001ac0| 65 63 74 6f 72 79 20 66 | 69 6c 65 20 6e 20 73 74 |ectory f|ile n st|
|00001ad0| 72 69 6e 67 2d 6d 61 74 | 63 68 20 22 5e 5c 5c 28 |ring-mat|ch "^\\(|
|00001ae0| 5c 5c 5b 2e 2a 5c 5c 29 | 5c 5c 2e 5c 5c 28 5b 5e |\\[.*\\)|\\.\\([^|
|00001af0| 5c 5c 2e 5d 2a 5c 5c 29 | 24 22 20 22 5b 2e 22 20 |\\.]*\\)|$" "[." |
|00001b00| 32 5d 20 34 20 28 23 24 | 20 2e 20 36 36 34 31 29 |2] 4 (#$| . 6641)|
|00001b10| 5d 29 0a 23 40 36 39 20 | 46 69 78 20 74 6f 20 6d |]).#@69 |Fix to m|
|00001b20| 61 6b 65 20 60 66 69 6c | 65 2d 6e 61 6d 65 2d 64 |ake `fil|e-name-d|
|00001b30| 69 72 65 63 74 6f 72 79 | 27 20 77 6f 72 6b 20 66 |irectory|' work f|
|00001b40| 6f 72 20 68 69 70 70 69 | 65 2d 65 78 70 61 6e 64 |or hippi|e-expand|
|00001b50| 20 75 6e 64 65 72 20 56 | 4d 53 2e 1f 0a 28 64 65 | under V|MS...(de|
|00001b60| 66 61 6c 69 61 73 20 27 | 68 65 2d 66 69 6c 65 2d |falias '|he-file-|
|00001b70| 6e 61 6d 65 2d 64 69 72 | 65 63 74 6f 72 79 20 23 |name-dir|ectory #|
|00001b80| 5b 28 66 69 6c 65 29 20 | 22 08 c1 3e 83 27 00 c2 |[(file) |"..>.'..|
|00001b90| 0b 21 c4 0b 21 1d 1e 06 | c7 c8 0e 06 5c 22 83 24 |.!..!...|....\".$|
|00001ba0| 00 0d 0e 06 c9 94 c9 95 | 4f ca 51 82 25 00 0d 2a |........|O.Q.%..*|
|00001bb0| 87 c4 0b 21 87 22 20 5b | 73 79 73 74 65 6d 2d 74 |...!." [|system-t|
|00001bc0| 79 70 65 20 28 61 78 70 | 2d 76 6d 73 20 76 61 78 |ype (axp|-vms vax|
|00001bd0| 2d 76 6d 73 29 20 66 69 | 6c 65 2d 6e 61 6d 65 2d |-vms) fi|le-name-|
|00001be0| 6e 6f 6e 64 69 72 65 63 | 74 6f 72 79 20 66 69 6c |nondirec|tory fil|
|00001bf0| 65 20 66 69 6c 65 2d 6e | 61 6d 65 2d 64 69 72 65 |e file-n|ame-dire|
|00001c00| 63 74 6f 72 79 20 64 20 | 6e 20 73 74 72 69 6e 67 |ctory d |n string|
|00001c10| 2d 6d 61 74 63 68 20 22 | 5e 5c 5c 28 5c 5c 5b 2e |-match "|^\\(\\[.|
|00001c20| 2a 5c 5c 29 5c 5c 2e 5c | 5c 28 5b 5e 5c 5c 2e 5d |*\\)\\.\|\([^\\.]|
|00001c30| 2a 5c 5c 29 24 22 20 31 | 20 22 5d 22 5d 20 34 20 |*\\)$" 1| "]"] 4 |
|00001c40| 28 23 24 20 2e 20 36 39 | 33 36 29 5d 29 0a 23 40 |(#$ . 69|36)]).#@|
|00001c50| 36 36 20 46 69 78 20 74 | 6f 20 6d 61 6b 65 20 60 |66 Fix t|o make `|
|00001c60| 66 69 6c 65 2d 64 69 72 | 65 63 74 6f 72 79 2d 70 |file-dir|ectory-p|
|00001c70| 27 20 77 6f 72 6b 20 66 | 6f 72 20 68 69 70 70 69 |' work f|or hippi|
|00001c80| 65 2d 65 78 70 61 6e 64 | 20 75 6e 64 65 72 20 56 |e-expand| under V|
|00001c90| 4d 53 2e 1f 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |MS...(de|falias '|
|00001ca0| 68 65 2d 66 69 6c 65 2d | 64 69 72 65 63 74 6f 72 |he-file-|director|
|00001cb0| 79 2d 70 20 23 5b 28 66 | 69 6c 65 29 20 22 08 c1 |y-p #[(f|ile) "..|
|00001cc0| 3e 83 12 00 c2 0b 21 86 | 15 00 c2 0b c4 50 21 87 |>.....!.|.....P!.|
|00001cd0| c2 0b 21 87 22 20 5b 73 | 79 73 74 65 6d 2d 74 79 |..!." [s|ystem-ty|
|00001ce0| 70 65 20 28 76 61 78 2d | 76 6d 73 20 61 78 70 2d |pe (vax-|vms axp-|
|00001cf0| 76 6d 73 29 20 66 69 6c | 65 2d 64 69 72 65 63 74 |vms) fil|e-direct|
|00001d00| 6f 72 79 2d 70 20 66 69 | 6c 65 20 22 5b 30 30 30 |ory-p fi|le "[000|
|00001d10| 30 30 30 5d 22 5d 20 33 | 20 28 23 24 20 2e 20 37 |000]"] 3| (#$ . 7|
|00001d20| 32 35 31 29 5d 29 0a 23 | 40 37 37 20 54 72 79 20 |251)]).#|@77 Try |
|00001d30| 74 6f 20 73 6c 61 6d 20 | 74 6f 67 65 74 68 65 72 |to slam |together|
|00001d40| 20 74 77 6f 20 70 61 72 | 74 73 20 6f 66 20 61 20 | two par|ts of a |
|00001d50| 66 69 6c 65 20 73 70 65 | 63 69 66 69 63 61 74 69 |file spe|cificati|
|00001d60| 6f 6e 2c 20 73 79 73 74 | 65 6d 20 64 65 70 65 6e |on, syst|em depen|
|00001d70| 64 65 6e 74 6c 79 2e 1f | 0a 28 64 65 66 61 6c 69 |dently..|.(defali|
|00001d80| 61 73 20 27 68 65 2d 63 | 6f 6e 63 61 74 2d 64 69 |as 'he-c|oncat-di|
|00001d90| 72 65 63 74 6f 72 79 2d | 66 69 6c 65 2d 6e 61 6d |rectory-|file-nam|
|00001da0| 65 20 23 5b 28 64 69 72 | 2d 70 61 72 74 20 6e 61 |e #[(dir|-part na|
|00001db0| 6d 65 2d 70 61 72 74 29 | 20 22 08 84 06 00 09 87 |me-part)| "......|
|00001dc0| 5c 6e c3 3e 83 2c 00 08 | c4 c5 4f c6 98 83 28 00 |\n.>.,..|..O...(.|
|00001dd0| 09 c7 c8 4f c9 98 83 28 | 00 08 c7 c4 4f 09 ca c5 |...O...(|....O...|
|00001de0| 4f 50 87 08 09 50 87 5c | 6e cb 3e 83 55 00 cc cd |OP...P.\|n.>.U...|
|00001df0| 08 5c 22 83 51 00 cc ce | 08 5c 22 84 51 00 09 89 |.\".Q...|.\".Q...|
|00001e00| 47 53 48 cf 55 83 51 00 | 09 89 47 53 d0 49 88 08 |GSH.U.Q.|..GS.I..|
|00001e10| 09 50 87 08 09 50 87 22 | 20 5b 64 69 72 2d 70 61 |.P...P."| [dir-pa|
|00001e20| 72 74 20 6e 61 6d 65 2d | 70 61 72 74 20 73 79 73 |rt name-|part sys|
|00001e30| 74 65 6d 2d 74 79 70 65 | 20 28 61 78 70 2d 76 6d |tem-type| (axp-vm|
|00001e40| 73 20 76 61 78 2d 76 6d | 73 29 20 2d 31 20 6e 69 |s vax-vm|s) -1 ni|
|00001e50| 6c 20 22 5d 22 20 30 20 | 32 20 22 5b 2e 22 20 31 |l "]" 0 |2 "[." 1|
|00001e60| 20 28 6d 73 2d 64 6f 73 | 20 6d 73 2d 77 69 6e 64 | (ms-dos| ms-wind|
|00001e70| 6f 77 73 29 20 73 74 72 | 69 6e 67 2d 6d 61 74 63 |ows) str|ing-matc|
|00001e80| 68 20 22 5c 5c 5c 5c 22 | 20 22 2f 22 20 34 37 20 |h "\\\\"| "/" 47 |
|00001e90| 39 32 5d 20 34 20 28 23 | 24 20 2e 20 37 34 36 38 |92] 4 (#|$ . 7468|
|00001ea0| 29 5d 29 0a 23 40 32 35 | 32 20 54 72 79 20 74 6f |)]).#@25|2 Try to|
|00001eb0| 20 63 6f 6d 70 6c 65 74 | 65 20 77 6f 72 64 20 61 | complet|e word a|
|00001ec0| 73 20 61 6e 20 45 6d 61 | 63 73 20 4c 69 73 70 20 |s an Ema|cs Lisp |
|00001ed0| 73 79 6d 62 6f 6c 2e 0a | 54 68 65 20 61 72 67 75 |symbol..|The argu|
|00001ee0| 6d 65 6e 74 20 4f 4c 44 | 20 68 61 73 20 74 6f 20 |ment OLD| has to |
|00001ef0| 62 65 20 6e 69 6c 20 74 | 68 65 20 66 69 72 73 74 |be nil t|he first|
|00001f00| 20 63 61 6c 6c 20 6f 66 | 20 74 68 69 73 20 66 75 | call of| this fu|
|00001f10| 6e 63 74 69 6f 6e 2c 20 | 61 6e 64 20 74 0a 66 6f |nction, |and t.fo|
|00001f20| 72 20 73 75 62 73 65 71 | 75 65 6e 74 20 63 61 6c |r subseq|uent cal|
|00001f30| 6c 73 20 28 66 6f 72 20 | 66 75 72 74 68 65 72 20 |ls (for |further |
|00001f40| 70 6f 73 73 69 62 6c 65 | 20 63 6f 6d 70 6c 65 74 |possible| complet|
|00001f50| 69 6f 6e 73 20 6f 66 20 | 74 68 65 20 73 61 6d 65 |ions of |the same|
|00001f60| 0a 73 74 72 69 6e 67 29 | 2e 20 20 49 74 20 72 65 |.string)|. It re|
|00001f70| 74 75 72 6e 73 20 74 20 | 69 66 20 61 20 6e 65 77 |turns t |if a new|
|00001f80| 20 63 6f 6d 70 6c 65 74 | 69 6f 6e 20 69 73 20 66 | complet|ion is f|
|00001f90| 6f 75 6e 64 2c 20 6e 69 | 6c 20 6f 74 68 65 72 77 |ound, ni|l otherw|
|00001fa0| 69 73 65 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |ise...(d|efalias |
|00001fb0| 27 74 72 79 2d 63 6f 6d | 70 6c 65 74 65 2d 6c 69 |'try-com|plete-li|
|00001fc0| 73 70 2d 73 79 6d 62 6f | 6c 20 23 5b 28 6f 6c 64 |sp-symbo|l #[(old|
|00001fd0| 29 20 22 08 84 27 00 c1 | c2 20 60 5c 22 88 c3 5c |) "..'..|. `\"..\|
|00001fe0| 66 0d 5c 22 84 15 00 5c | 66 0d 42 15 5c 66 c6 9a |f.\"...\|f.B.\f..|
|00001ff0| 3f 85 25 00 c7 c8 5c 66 | 0e 09 ca 23 cb 5c 22 16 |?.%...\f|...#.\".|
|00002000| 5c 66 0e 5c 66 83 3e 00 | c3 0e 5c 66 40 0d 5c 22 |\f.\f.>.|..\f@.\"|
|00002010| 83 3e 00 0e 5c 66 41 89 | 16 5c 66 84 2c 00 0e 5c |.>..\fA.|.\f.,..\|
|00002020| 66 84 4c 00 08 83 4a 00 | cd 20 88 ce 87 cf 0e 5c |f.L...J.|. .....\|
|00002030| 66 40 21 88 0e 5c 66 41 | 16 5c 66 d0 87 22 20 5b |f@!..\fA|.\f.." [|
|00002040| 6f 6c 64 20 68 65 2d 69 | 6e 69 74 2d 73 74 72 69 |old he-i|nit-stri|
|00002050| 6e 67 20 68 65 2d 6c 69 | 73 70 2d 73 79 6d 62 6f |ng he-li|sp-symbo|
|00002060| 6c 2d 62 65 67 20 68 65 | 2d 73 74 72 69 6e 67 2d |l-beg he|-string-|
|00002070| 6d 65 6d 62 65 72 20 68 | 65 2d 73 65 61 72 63 68 |member h|e-search|
|00002080| 2d 73 74 72 69 6e 67 20 | 68 65 2d 74 72 69 65 64 |-string |he-tried|
|00002090| 2d 74 61 62 6c 65 20 22 | 22 20 73 6f 72 74 20 61 |-table "|" sort a|
|000020a0| 6c 6c 2d 63 6f 6d 70 6c | 65 74 69 6f 6e 73 20 6f |ll-compl|etions o|
|000020b0| 62 61 72 72 61 79 20 23 | 5b 28 73 79 6d 29 20 22 |barray #|[(sym) "|
|000020c0| c0 09 21 86 0f 00 c2 09 | 21 86 0f 00 c3 09 21 87 |..!.....|!.....!.|
|000020d0| 22 20 5b 62 6f 75 6e 64 | 70 20 73 79 6d 20 66 62 |" [bound|p sym fb|
|000020e0| 6f 75 6e 64 70 20 73 79 | 6d 62 6f 6c 2d 70 6c 69 |oundp sy|mbol-pli|
|000020f0| 73 74 5d 20 32 5d 20 73 | 74 72 69 6e 67 2d 6c 65 |st] 2] s|tring-le|
|00002100| 73 73 70 20 68 65 2d 65 | 78 70 61 6e 64 2d 6c 69 |ssp he-e|xpand-li|
|00002110| 73 74 20 68 65 2d 72 65 | 73 65 74 2d 73 74 72 69 |st he-re|set-stri|
|00002120| 6e 67 20 6e 69 6c 20 68 | 65 2d 73 75 62 73 74 69 |ng nil h|e-substi|
|00002130| 74 75 74 65 2d 73 74 72 | 69 6e 67 20 74 5d 20 36 |tute-str|ing t] 6|
|00002140| 20 28 23 24 20 2e 20 37 | 38 35 30 29 5d 29 0a 23 | (#$ . 7|850)]).#|
|00002150| 40 32 31 38 20 54 72 79 | 20 74 6f 20 63 6f 6d 70 |@218 Try| to comp|
|00002160| 6c 65 74 65 20 61 73 20 | 61 6e 20 45 6d 61 63 73 |lete as |an Emacs|
|00002170| 20 4c 69 73 70 20 73 79 | 6d 62 6f 6c 2c 20 61 73 | Lisp sy|mbol, as|
|00002180| 20 6d 61 6e 79 20 63 68 | 61 72 61 63 74 65 72 73 | many ch|aracters|
|00002190| 20 61 73 20 75 6e 69 71 | 75 65 2e 0a 54 68 65 20 | as uniq|ue..The |
|000021a0| 61 72 67 75 6d 65 6e 74 | 20 4f 4c 44 20 68 61 73 |argument| OLD has|
|000021b0| 20 74 6f 20 62 65 20 6e | 69 6c 20 74 68 65 20 66 | to be n|il the f|
|000021c0| 69 72 73 74 20 63 61 6c | 6c 20 6f 66 20 74 68 69 |irst cal|l of thi|
|000021d0| 73 20 66 75 6e 63 74 69 | 6f 6e 2e 20 20 49 74 0a |s functi|on. It.|
|000021e0| 72 65 74 75 72 6e 73 20 | 74 20 69 66 20 61 20 75 |returns |t if a u|
|000021f0| 6e 69 71 75 65 2c 20 70 | 6f 73 73 69 62 6c 79 20 |nique, p|ossibly |
|00002200| 70 61 72 74 69 61 6c 2c | 20 63 6f 6d 70 6c 65 74 |partial,| complet|
|00002210| 69 6f 6e 20 69 73 20 66 | 6f 75 6e 64 2c 20 6e 69 |ion is f|ound, ni|
|00002220| 6c 20 0a 6f 74 68 65 72 | 77 69 73 65 2e 1f 0a 28 |l .other|wise...(|
|00002230| 64 65 66 61 6c 69 61 73 | 20 27 74 72 79 2d 63 6f |defalias| 'try-co|
|00002240| 6d 70 6c 65 74 65 2d 6c | 69 73 70 2d 73 79 6d 62 |mplete-l|isp-symb|
|00002250| 6f 6c 2d 70 61 72 74 69 | 61 6c 6c 79 20 23 5b 28 |ol-parti|ally #[(|
|00002260| 6f 6c 64 29 20 22 c0 19 | 5c 6e 84 2f 00 c3 c4 20 |old) "..|\n./... |
|00002270| 60 5c 22 88 0d c6 98 84 | 19 00 c7 0d 0e 08 c9 23 |`\".....|.......#|
|00002280| 11 09 ca 3d 84 2d 00 09 | 0d 98 84 2d 00 cb 09 0e |...=.-..|...-....|
|00002290| 5c 66 5c 22 83 2f 00 c0 | 11 09 84 3e 00 5c 6e 83 |\f\"./..|...>.\n.|
|000022a0| 3a 00 cd 20 88 c0 82 43 | 00 ce 09 21 88 ca 29 87 |:.. ...C|...!..).|
|000022b0| 22 20 5b 6e 69 6c 20 65 | 78 70 61 6e 73 69 6f 6e |" [nil e|xpansion|
|000022c0| 20 6f 6c 64 20 68 65 2d | 69 6e 69 74 2d 73 74 72 | old he-|init-str|
|000022d0| 69 6e 67 20 68 65 2d 6c | 69 73 70 2d 73 79 6d 62 |ing he-l|isp-symb|
|000022e0| 6f 6c 2d 62 65 67 20 68 | 65 2d 73 65 61 72 63 68 |ol-beg h|e-search|
|000022f0| 2d 73 74 72 69 6e 67 20 | 22 22 20 74 72 79 2d 63 |-string |"" try-c|
|00002300| 6f 6d 70 6c 65 74 69 6f | 6e 20 6f 62 61 72 72 61 |ompletio|n obarra|
|00002310| 79 20 23 5b 28 73 79 6d | 29 20 22 c0 09 21 86 0f |y #[(sym|) "..!..|
|00002320| 00 c2 09 21 86 0f 00 c3 | 09 21 87 22 20 5b 62 6f |...!....|.!." [bo|
|00002330| 75 6e 64 70 20 73 79 6d | 20 66 62 6f 75 6e 64 70 |undp sym| fboundp|
|00002340| 20 73 79 6d 62 6f 6c 2d | 70 6c 69 73 74 5d 20 32 | symbol-|plist] 2|
|00002350| 5d 20 74 20 68 65 2d 73 | 74 72 69 6e 67 2d 6d 65 |] t he-s|tring-me|
|00002360| 6d 62 65 72 20 68 65 2d | 74 72 69 65 64 2d 74 61 |mber he-|tried-ta|
|00002370| 62 6c 65 20 68 65 2d 72 | 65 73 65 74 2d 73 74 72 |ble he-r|eset-str|
|00002380| 69 6e 67 20 68 65 2d 73 | 75 62 73 74 69 74 75 74 |ing he-s|ubstitut|
|00002390| 65 2d 73 74 72 69 6e 67 | 5d 20 34 20 28 23 24 20 |e-string|] 4 (#$ |
|000023a0| 2e 20 38 35 33 33 29 5d | 29 0a 28 64 65 66 61 6c |. 8533)]|).(defal|
|000023b0| 69 61 73 20 27 68 65 2d | 6c 69 73 70 2d 73 79 6d |ias 'he-|lisp-sym|
|000023c0| 62 6f 6c 2d 62 65 67 20 | 23 5b 6e 69 6c 20 22 c0 |bol-beg |#[nil ".|
|000023d0| 19 8a 09 c2 78 88 60 2a | 87 22 20 5b 22 2d 61 2d |....x.`*|." ["-a-|
|000023e0| 7a 41 2d 5a 30 2d 39 5f | 2e 22 20 73 6b 69 70 73 |zA-Z0-9_|." skips|
|000023f0| 20 6e 69 6c 5d 20 32 5d | 29 0a 23 40 32 37 32 20 | nil] 2]|).#@272 |
|00002400| 54 72 79 20 74 6f 20 63 | 6f 6d 70 6c 65 74 65 20 |Try to c|omplete |
|00002410| 74 68 65 20 63 75 72 72 | 65 6e 74 20 6c 69 6e 65 |the curr|ent line|
|00002420| 20 74 6f 20 61 6e 20 65 | 6e 74 69 72 65 20 6c 69 | to an e|ntire li|
|00002430| 6e 65 20 69 6e 20 74 68 | 65 20 62 75 66 66 65 72 |ne in th|e buffer|
|00002440| 2e 0a 54 68 65 20 61 72 | 67 75 6d 65 6e 74 20 4f |..The ar|gument O|
|00002450| 4c 44 20 68 61 73 20 74 | 6f 20 62 65 20 6e 69 6c |LD has t|o be nil|
|00002460| 20 74 68 65 20 66 69 72 | 73 74 20 63 61 6c 6c 20 | the fir|st call |
|00002470| 6f 66 20 74 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |of this |function|
|00002480| 2c 20 61 6e 64 20 74 0a | 66 6f 72 20 73 75 62 73 |, and t.|for subs|
|00002490| 65 71 75 65 6e 74 20 63 | 61 6c 6c 73 20 28 66 6f |equent c|alls (fo|
|000024a0| 72 20 66 75 72 74 68 65 | 72 20 70 6f 73 73 69 62 |r furthe|r possib|
|000024b0| 6c 65 20 63 6f 6d 70 6c | 65 74 69 6f 6e 73 20 6f |le compl|etions o|
|000024c0| 66 20 74 68 65 20 73 61 | 6d 65 0a 73 74 72 69 6e |f the sa|me.strin|
|000024d0| 67 29 2e 20 20 49 74 20 | 72 65 74 75 72 6e 73 20 |g). It |returns |
|000024e0| 74 20 69 66 20 61 20 6e | 65 77 20 63 6f 6d 70 6c |t if a n|ew compl|
|000024f0| 65 74 69 6f 6e 20 69 73 | 20 66 6f 75 6e 64 2c 20 |etion is| found, |
|00002500| 6e 69 6c 20 6f 74 68 65 | 72 77 69 73 65 2e 1f 0a |nil othe|rwise...|
|00002510| 28 64 65 66 61 6c 69 61 | 73 20 27 74 72 79 2d 65 |(defalia|s 'try-e|
|00002520| 78 70 61 6e 64 2d 6c 69 | 6e 65 20 23 5b 28 6f 6c |xpand-li|ne #[(ol|
|00002530| 64 29 20 22 c0 c1 70 21 | 85 08 00 5c 6e 1b 1c 0d |d) "..p!|...\n...|
|00002540| 84 1f 00 c6 c7 0b 21 60 | 5c 22 88 0e 08 0e 09 c0 |......!`|\"......|
|00002550| 93 88 ca 16 0b 0e 5c 66 | cd 9a 84 61 00 8a 0e 0b |......\f|...a....|
|00002560| 83 4b 00 0e 08 62 88 ce | 0e 5c 66 0b ca 23 14 0e |.K...b..|.\f..#..|
|00002570| 08 60 c0 93 88 5c 66 84 | 4b 00 0e 08 0e 0f c0 93 |.`...\f.|K.......|
|00002580| 88 c0 16 0b 5c 66 84 60 | 00 0e 08 62 88 ce 0e 5c |....\f.`|...b...\|
|00002590| 66 0b c0 23 14 0e 08 60 | c0 93 88 29 5c 66 84 70 |f..#...`|...)\f.p|
|000025a0| 00 0d 83 6c 00 d0 20 88 | c0 82 76 00 d1 5c 66 ca |...l.. .|..v..\f.|
|000025b0| 5c 22 88 ca 2a 87 22 20 | 5b 6e 69 6c 20 67 65 74 |\"..*." |[nil get|
|000025c0| 2d 62 75 66 66 65 72 2d | 70 72 6f 63 65 73 73 20 |-buffer-|process |
|000025d0| 63 6f 6d 69 6e 74 2d 70 | 72 6f 6d 70 74 2d 72 65 |comint-p|rompt-re|
|000025e0| 67 65 78 70 20 73 74 72 | 69 70 2d 70 72 6f 6d 70 |gexp str|ip-promp|
|000025f0| 74 20 65 78 70 61 6e 73 | 69 6f 6e 20 6f 6c 64 20 |t expans|ion old |
|00002600| 68 65 2d 69 6e 69 74 2d | 73 74 72 69 6e 67 20 68 |he-init-|string h|
|00002610| 65 2d 6c 69 6e 65 2d 62 | 65 67 20 68 65 2d 73 65 |e-line-b|eg he-se|
|00002620| 61 72 63 68 2d 6c 6f 63 | 20 68 65 2d 73 74 72 69 |arch-loc| he-stri|
|00002630| 6e 67 2d 62 65 67 20 74 | 20 68 65 2d 73 65 61 72 |ng-beg t| he-sear|
|00002640| 63 68 2d 62 77 20 68 65 | 2d 73 65 61 72 63 68 2d |ch-bw he|-search-|
|00002650| 73 74 72 69 6e 67 20 22 | 22 20 68 65 2d 6c 69 6e |string "|" he-lin|
|00002660| 65 2d 73 65 61 72 63 68 | 20 68 65 2d 73 74 72 69 |e-search| he-stri|
|00002670| 6e 67 2d 65 6e 64 20 68 | 65 2d 72 65 73 65 74 2d |ng-end h|e-reset-|
|00002680| 73 74 72 69 6e 67 20 68 | 65 2d 73 75 62 73 74 69 |string h|e-substi|
|00002690| 74 75 74 65 2d 73 74 72 | 69 6e 67 5d 20 34 20 28 |tute-str|ing] 4 (|
|000026a0| 23 24 20 2e 20 39 32 31 | 36 29 5d 29 0a 23 40 32 |#$ . 921|6)]).#@2|
|000026b0| 36 39 20 54 72 79 20 74 | 6f 20 63 6f 6d 70 6c 65 |69 Try t|o comple|
|000026c0| 74 65 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 6c |te the c|urrent l|
|000026d0| 69 6e 65 2c 20 73 65 61 | 72 63 68 69 6e 67 20 61 |ine, sea|rching a|
|000026e0| 6c 6c 20 6f 74 68 65 72 | 20 62 75 66 66 65 72 73 |ll other| buffers|
|000026f0| 2e 0a 54 68 65 20 61 72 | 67 75 6d 65 6e 74 20 4f |..The ar|gument O|
|00002700| 4c 44 20 68 61 73 20 74 | 6f 20 62 65 20 6e 69 6c |LD has t|o be nil|
|00002710| 20 74 68 65 20 66 69 72 | 73 74 20 63 61 6c 6c 20 | the fir|st call |
|00002720| 6f 66 20 74 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |of this |function|
|00002730| 2c 20 61 6e 64 20 74 0a | 66 6f 72 20 73 75 62 73 |, and t.|for subs|
|00002740| 65 71 75 65 6e 74 20 63 | 61 6c 6c 73 20 28 66 6f |equent c|alls (fo|
|00002750| 72 20 66 75 72 74 68 65 | 72 20 70 6f 73 73 69 62 |r furthe|r possib|
|00002760| 6c 65 20 63 6f 6d 70 6c | 65 74 69 6f 6e 73 20 6f |le compl|etions o|
|00002770| 66 20 74 68 65 20 73 61 | 6d 65 0a 73 74 72 69 6e |f the sa|me.strin|
|00002780| 67 29 2e 20 20 49 74 20 | 72 65 74 75 72 6e 73 20 |g). It |returns |
|00002790| 74 20 69 66 20 61 20 6e | 65 77 20 63 6f 6d 70 6c |t if a n|ew compl|
|000027a0| 65 74 69 6f 6e 20 69 73 | 20 66 6f 75 6e 64 2c 20 |etion is| found, |
|000027b0| 6e 69 6c 20 6f 74 68 65 | 72 77 69 73 65 2e 1f 0a |nil othe|rwise...|
|000027c0| 28 64 65 66 61 6c 69 61 | 73 20 27 74 72 79 2d 65 |(defalia|s 'try-e|
|000027d0| 78 70 61 6e 64 2d 6c 69 | 6e 65 2d 61 6c 6c 2d 62 |xpand-li|ne-all-b|
|000027e0| 75 66 66 65 72 73 20 23 | 5b 28 6f 6c 64 29 20 22 |uffers #|[(old) "|
|000027f0| c0 c1 70 21 85 08 00 5c | 6e 70 0b 1c 1d 1e 06 1e |..p!...\|np......|
|00002800| 07 0e 08 84 2c 00 c9 ca | 0e 06 21 60 5c 22 88 cb |....,...|..!`\"..|
|00002810| 20 16 5c 66 cd 16 0e 0e | 0f d0 0e 5c 66 40 93 88 | .\f....|...\f@..|
|00002820| 0e 11 d2 9a 84 b1 00 0e | 5c 66 83 b1 00 0e 07 84 |........|\f......|
|00002830| b1 00 0e 13 83 4a 00 0e | 0e 0e 13 57 83 b1 00 0e |.....J..|...W....|
|00002840| 5c 66 40 71 88 70 0d 3d | 84 a1 00 0e 14 0e 15 3e |\f@q.p.=|.......>|
|00002850| 84 a1 00 d6 d7 20 0e 15 | 5c 22 84 a1 00 8a 0e 0f |..... ..|\"......|
|00002860| 62 88 c1 70 21 85 72 00 | 5c 6e 16 06 5c 66 1b d8 |b..p!.r.|\n..\f..|
|00002870| 0e 11 0e 06 c0 23 29 16 | 07 0e 0f 60 c0 93 88 0e |.....#).|...`....|
|00002880| 07 84 9d 00 0e 5c 66 41 | 16 5c 66 0e 0e 54 16 0e |.....\fA|.\f..T..|
|00002890| 0e 0f d0 0e 5c 66 40 93 | 88 29 82 33 00 0e 5c 66 |....\f@.|.).3..\f|
|000028a0| 41 16 5c 66 0e 0f d0 0e | 5c 66 40 93 88 82 33 00 |A.\f....|\f@...3.|
|000028b0| 0d 71 88 0e 07 84 c5 00 | 0e 08 83 c1 00 d9 20 88 |.q......|...... .|
|000028c0| c0 82 cc 00 da 0e 07 db | 5c 22 88 db 2c 87 22 20 |........|\"..,." |
|000028d0| 5b 6e 69 6c 20 67 65 74 | 2d 62 75 66 66 65 72 2d |[nil get|-buffer-|
|000028e0| 70 72 6f 63 65 73 73 20 | 63 6f 6d 69 6e 74 2d 70 |process |comint-p|
|000028f0| 72 6f 6d 70 74 2d 72 65 | 67 65 78 70 20 63 61 73 |rompt-re|gexp cas|
|00002900| 65 2d 66 6f 6c 64 2d 73 | 65 61 72 63 68 20 6f 72 |e-fold-s|earch or|
|00002910| 69 67 2d 63 61 73 65 2d | 66 6f 6c 64 2d 73 65 61 |ig-case-|fold-sea|
|00002920| 72 63 68 20 62 75 66 20 | 73 74 72 69 70 2d 70 72 |rch buf |strip-pr|
|00002930| 6f 6d 70 74 20 65 78 70 | 61 6e 73 69 6f 6e 20 6f |ompt exp|ansion o|
|00002940| 6c 64 20 68 65 2d 69 6e | 69 74 2d 73 74 72 69 6e |ld he-in|it-strin|
|00002950| 67 20 68 65 2d 6c 69 6e | 65 2d 62 65 67 20 62 75 |g he-lin|e-beg bu|
|00002960| 66 66 65 72 2d 6c 69 73 | 74 20 68 65 2d 73 65 61 |ffer-lis|t he-sea|
|00002970| 72 63 68 2d 62 75 66 73 | 20 30 20 68 65 2d 73 65 |rch-bufs| 0 he-se|
|00002980| 61 72 63 68 65 64 2d 6e | 2d 62 75 66 73 20 68 65 |arched-n|-bufs he|
|00002990| 2d 73 65 61 72 63 68 2d | 6c 6f 63 20 31 20 68 65 |-search-|loc 1 he|
|000029a0| 2d 73 65 61 72 63 68 2d | 73 74 72 69 6e 67 20 22 |-search-|string "|
|000029b0| 22 20 68 69 70 70 69 65 | 2d 65 78 70 61 6e 64 2d |" hippie|-expand-|
|000029c0| 6d 61 78 2d 62 75 66 66 | 65 72 73 20 6d 61 6a 6f |max-buff|ers majo|
|000029d0| 72 2d 6d 6f 64 65 20 68 | 69 70 70 69 65 2d 65 78 |r-mode h|ippie-ex|
|000029e0| 70 61 6e 64 2d 69 67 6e | 6f 72 65 2d 62 75 66 66 |pand-ign|ore-buff|
|000029f0| 65 72 73 20 68 65 2d 72 | 65 67 65 78 70 2d 6d 65 |ers he-r|egexp-me|
|00002a00| 6d 62 65 72 20 62 75 66 | 66 65 72 2d 6e 61 6d 65 |mber buf|fer-name|
|00002a10| 20 68 65 2d 6c 69 6e 65 | 2d 73 65 61 72 63 68 20 | he-line|-search |
|00002a20| 68 65 2d 72 65 73 65 74 | 2d 73 74 72 69 6e 67 20 |he-reset|-string |
|00002a30| 68 65 2d 73 75 62 73 74 | 69 74 75 74 65 2d 73 74 |he-subst|itute-st|
|00002a40| 72 69 6e 67 20 74 5d 20 | 34 20 28 23 24 20 2e 20 |ring t] |4 (#$ . |
|00002a50| 39 39 30 37 29 5d 29 0a | 28 64 65 66 61 6c 69 61 |9907)]).|(defalia|
|00002a60| 73 20 27 68 65 2d 6c 69 | 6e 65 2d 73 65 61 72 63 |s 'he-li|ne-searc|
|00002a70| 68 20 23 5b 28 73 74 72 | 20 73 74 72 69 70 2d 70 |h #[(str| strip-p|
|00002a80| 72 6f 6d 70 74 20 72 65 | 76 65 72 73 65 29 20 22 |rompt re|verse) "|
|00002a90| c0 19 09 84 37 00 5c 6e | 83 16 00 c3 c4 0d 0e 06 |....7.\n|........|
|00002aa0| 5c 22 c0 c7 23 82 1f 00 | c8 c4 0d 0e 06 5c 22 c0 |\"..#...|.....\".|
|00002ab0| c7 23 83 37 00 c9 94 c9 | 95 7b 11 ca 09 0e 0b c7 |.#.7....|.{......|
|00002ac0| 23 83 02 00 c0 89 11 83 | 06 00 09 29 87 22 20 5b |#.......|...)." [|
|00002ad0| 6e 69 6c 20 72 65 73 75 | 6c 74 20 72 65 76 65 72 |nil resu|lt rever|
|00002ae0| 73 65 20 72 65 2d 73 65 | 61 72 63 68 2d 62 61 63 |se re-se|arch-bac|
|00002af0| 6b 77 61 72 64 20 68 65 | 2d 6c 69 6e 65 2d 73 65 |kward he|-line-se|
|00002b00| 61 72 63 68 2d 72 65 67 | 65 78 70 20 73 74 72 20 |arch-reg|exp str |
|00002b10| 73 74 72 69 70 2d 70 72 | 6f 6d 70 74 20 74 20 72 |strip-pr|ompt t r|
|00002b20| 65 2d 73 65 61 72 63 68 | 2d 66 6f 72 77 61 72 64 |e-search|-forward|
|00002b30| 20 32 20 68 65 2d 73 74 | 72 69 6e 67 2d 6d 65 6d | 2 he-st|ring-mem|
|00002b40| 62 65 72 20 68 65 2d 74 | 72 69 65 64 2d 74 61 62 |ber he-t|ried-tab|
|00002b50| 6c 65 5d 20 35 5d 29 0a | 28 64 65 66 61 6c 69 61 |le] 5]).|(defalia|
|00002b60| 73 20 27 68 65 2d 6c 69 | 6e 65 2d 62 65 67 20 23 |s 'he-li|ne-beg #|
|00002b70| 5b 28 73 74 72 69 70 2d | 70 72 6f 6d 70 74 29 20 |[(strip-|prompt) |
|00002b80| 22 8a c0 c1 c2 0b 5c 22 | 8a c4 79 88 60 29 c5 23 |".....\"|..y.`).#|
|00002b90| 83 16 00 c6 94 82 17 00 | 60 29 87 22 20 5b 72 65 |........|`)." [re|
|00002ba0| 2d 73 65 61 72 63 68 2d | 62 61 63 6b 77 61 72 64 |-search-|backward|
|00002bb0| 20 68 65 2d 6c 69 6e 65 | 2d 73 65 61 72 63 68 2d | he-line|-search-|
|00002bc0| 72 65 67 65 78 70 20 22 | 22 20 73 74 72 69 70 2d |regexp "|" strip-|
|00002bd0| 70 72 6f 6d 70 74 20 30 | 20 74 20 32 5d 20 34 5d |prompt 0| t 2] 4]|
|00002be0| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 68 65 2d |).(defal|ias 'he-|
|00002bf0| 6c 69 6e 65 2d 73 65 61 | 72 63 68 2d 72 65 67 65 |line-sea|rch-rege|
|00002c00| 78 70 20 23 5b 28 70 61 | 74 20 73 74 72 69 70 2d |xp #[(pa|t strip-|
|00002c10| 70 72 6f 6d 70 74 29 20 | 22 08 83 0e 00 c1 5c 6e |prompt) |".....\n|
|00002c20| c3 c4 0d 21 c6 b0 05 87 | c7 c4 0d 21 c6 51 87 22 |...!....|...!.Q."|
|00002c30| 20 5b 73 74 72 69 70 2d | 70 72 6f 6d 70 74 20 22 | [strip-|prompt "|
|00002c40| 5c 5c 28 22 20 63 6f 6d | 69 6e 74 2d 70 72 6f 6d |\\(" com|int-prom|
|00002c50| 70 74 2d 72 65 67 65 78 | 70 20 22 5c 5c 7c 5e 5c |pt-regex|p "\\|^\|
|00002c60| 5c 73 2d 2a 5c 5c 29 5c | 5c 28 22 20 72 65 67 65 |\s-*\\)\|\(" rege|
|00002c70| 78 70 2d 71 75 6f 74 65 | 20 70 61 74 20 22 5b 5e |xp-quote| pat "[^|
|00002c80| 5c 6e 5d 2a 5b 5e 20 09 | 5c 6e 5d 5c 5c 29 22 20 |\n]*[^ .|\n]\\)" |
|00002c90| 22 5e 5c 5c 28 5c 5c 73 | 2d 2a 5c 5c 29 5c 5c 28 |"^\\(\\s|-*\\)\\(|
|00002ca0| 22 5d 20 35 5d 29 0a 23 | 40 32 35 35 20 54 72 79 |"] 5]).#|@255 Try|
|00002cb0| 20 74 6f 20 63 6f 6d 70 | 6c 65 74 65 20 74 68 65 | to comp|lete the|
|00002cc0| 20 63 75 72 72 65 6e 74 | 20 62 65 67 69 6e 6e 69 | current| beginni|
|00002cd0| 6e 67 20 6f 66 20 61 20 | 6c 69 73 74 2e 0a 54 68 |ng of a |list..Th|
|00002ce0| 65 20 61 72 67 75 6d 65 | 6e 74 20 4f 4c 44 20 68 |e argume|nt OLD h|
|00002cf0| 61 73 20 74 6f 20 62 65 | 20 6e 69 6c 20 74 68 65 |as to be| nil the|
|00002d00| 20 66 69 72 73 74 20 63 | 61 6c 6c 20 6f 66 20 74 | first c|all of t|
|00002d10| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 2c 20 61 6e |his func|tion, an|
|00002d20| 64 20 74 0a 66 6f 72 20 | 73 75 62 73 65 71 75 65 |d t.for |subseque|
|00002d30| 6e 74 20 63 61 6c 6c 73 | 20 28 66 6f 72 20 66 75 |nt calls| (for fu|
|00002d40| 72 74 68 65 72 20 70 6f | 73 73 69 62 6c 65 20 63 |rther po|ssible c|
|00002d50| 6f 6d 70 6c 65 74 69 6f | 6e 73 20 6f 66 20 74 68 |ompletio|ns of th|
|00002d60| 65 20 73 61 6d 65 0a 73 | 74 72 69 6e 67 29 2e 20 |e same.s|tring). |
|00002d70| 20 49 74 20 72 65 74 75 | 72 6e 73 20 74 20 69 66 | It retu|rns t if|
|00002d80| 20 61 20 6e 65 77 20 63 | 6f 6d 70 6c 65 74 69 6f | a new c|ompletio|
|00002d90| 6e 20 69 73 20 66 6f 75 | 6e 64 2c 20 6e 69 6c 20 |n is fou|nd, nil |
|00002da0| 6f 74 68 65 72 77 69 73 | 65 2e 1f 0a 28 64 65 66 |otherwis|e...(def|
|00002db0| 61 6c 69 61 73 20 27 74 | 72 79 2d 65 78 70 61 6e |alias 't|ry-expan|
|00002dc0| 64 2d 6c 69 73 74 20 23 | 5b 28 6f 6c 64 29 20 22 |d-list #|[(old) "|
|00002dd0| c0 19 5c 6e 84 15 00 c3 | c4 20 60 5c 22 88 0d 0e |..\n....|. `\"...|
|00002de0| 06 c0 93 88 c7 16 08 0e | 09 ca 9a 84 50 00 8a 0e |........|....P...|
|00002df0| 08 83 3d 00 0d 62 88 cb | 0e 09 c7 5c 22 11 0d 60 |..=..b..|...\"..`|
|00002e00| c0 93 88 09 84 3d 00 0d | 0e 5c 66 c0 93 88 c0 16 |.....=..|.\f.....|
|00002e10| 08 09 84 4f 00 0d 62 88 | cb 0e 09 c0 5c 22 11 0d |...O..b.|....\"..|
|00002e20| 60 c0 93 88 29 09 84 5f | 00 5c 6e 83 5b 00 cd 20 |`...).._|.\n.[.. |
|00002e30| 88 c0 82 65 00 ce 09 c7 | 5c 22 88 c7 29 87 22 20 |...e....|\"..)." |
|00002e40| 5b 6e 69 6c 20 65 78 70 | 61 6e 73 69 6f 6e 20 6f |[nil exp|ansion o|
|00002e50| 6c 64 20 68 65 2d 69 6e | 69 74 2d 73 74 72 69 6e |ld he-in|it-strin|
|00002e60| 67 20 68 65 2d 6c 69 73 | 74 2d 62 65 67 20 68 65 |g he-lis|t-beg he|
|00002e70| 2d 73 65 61 72 63 68 2d | 6c 6f 63 20 68 65 2d 73 |-search-|loc he-s|
|00002e80| 74 72 69 6e 67 2d 62 65 | 67 20 74 20 68 65 2d 73 |tring-be|g t he-s|
|00002e90| 65 61 72 63 68 2d 62 77 | 20 68 65 2d 73 65 61 72 |earch-bw| he-sear|
|00002ea0| 63 68 2d 73 74 72 69 6e | 67 20 22 22 20 68 65 2d |ch-strin|g "" he-|
|00002eb0| 6c 69 73 74 2d 73 65 61 | 72 63 68 20 68 65 2d 73 |list-sea|rch he-s|
|00002ec0| 74 72 69 6e 67 2d 65 6e | 64 20 68 65 2d 72 65 73 |tring-en|d he-res|
|00002ed0| 65 74 2d 73 74 72 69 6e | 67 20 68 65 2d 73 75 62 |et-strin|g he-sub|
|00002ee0| 73 74 69 74 75 74 65 2d | 73 74 72 69 6e 67 5d 20 |stitute-|string] |
|00002ef0| 33 20 28 23 24 20 2e 20 | 31 31 34 33 37 29 5d 29 |3 (#$ . |11437)])|
|00002f00| 0a 23 40 32 36 39 20 54 | 72 79 20 74 6f 20 63 6f |.#@269 T|ry to co|
|00002f10| 6d 70 6c 65 74 65 20 74 | 68 65 20 63 75 72 72 65 |mplete t|he curre|
|00002f20| 6e 74 20 6c 69 73 74 2c | 20 73 65 61 72 63 68 69 |nt list,| searchi|
|00002f30| 6e 67 20 61 6c 6c 20 6f | 74 68 65 72 20 62 75 66 |ng all o|ther buf|
|00002f40| 66 65 72 73 2e 0a 54 68 | 65 20 61 72 67 75 6d 65 |fers..Th|e argume|
|00002f50| 6e 74 20 4f 4c 44 20 68 | 61 73 20 74 6f 20 62 65 |nt OLD h|as to be|
|00002f60| 20 6e 69 6c 20 74 68 65 | 20 66 69 72 73 74 20 63 | nil the| first c|
|00002f70| 61 6c 6c 20 6f 66 20 74 | 68 69 73 20 66 75 6e 63 |all of t|his func|
|00002f80| 74 69 6f 6e 2c 20 61 6e | 64 20 74 0a 66 6f 72 20 |tion, an|d t.for |
|00002f90| 73 75 62 73 65 71 75 65 | 6e 74 20 63 61 6c 6c 73 |subseque|nt calls|
|00002fa0| 20 28 66 6f 72 20 66 75 | 72 74 68 65 72 20 70 6f | (for fu|rther po|
|00002fb0| 73 73 69 62 6c 65 20 63 | 6f 6d 70 6c 65 74 69 6f |ssible c|ompletio|
|00002fc0| 6e 73 20 6f 66 20 74 68 | 65 20 73 61 6d 65 0a 73 |ns of th|e same.s|
|00002fd0| 74 72 69 6e 67 29 2e 20 | 20 49 74 20 72 65 74 75 |tring). | It retu|
|00002fe0| 72 6e 73 20 74 20 69 66 | 20 61 20 6e 65 77 20 63 |rns t if| a new c|
|00002ff0| 6f 6d 70 6c 65 74 69 6f | 6e 20 69 73 20 66 6f 75 |ompletio|n is fou|
|00003000| 6e 64 2c 20 6e 69 6c 20 | 6f 74 68 65 72 77 69 73 |nd, nil |otherwis|
|00003010| 65 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 74 |e...(def|alias 't|
|00003020| 72 79 2d 65 78 70 61 6e | 64 2d 6c 69 73 74 2d 61 |ry-expan|d-list-a|
|00003030| 6c 6c 2d 62 75 66 66 65 | 72 73 20 23 5b 28 6f 6c |ll-buffe|rs #[(ol|
|00003040| 64 29 20 22 c0 70 09 1a | 1b 1c 0d 84 1f 00 c6 c7 |d) ".p..|........|
|00003050| 20 60 5c 22 88 c8 20 16 | 09 ca 16 0b 0e 5c 66 cd | `\".. .|.....\f.|
|00003060| 0e 09 40 93 88 0e 0e cf | 9a 84 96 00 0e 09 83 96 |..@.....|........|
|00003070| 00 5c 66 84 96 00 0e 10 | 83 3c 00 0e 0b 0e 10 57 |.\f.....|.<.....W|
|00003080| 83 96 00 0e 09 40 71 88 | 70 0b 3d 84 86 00 0e 11 |.....@q.|p.=.....|
|00003090| 0e 12 3e 84 86 00 d3 d4 | 20 0e 12 5c 22 84 86 00 |..>.....| ..\"...|
|000030a0| 8a 0e 5c 66 62 88 5c 6e | 19 d5 0e 0e c0 5c 22 29 |..\fb.\n|.....\")|
|000030b0| 14 0e 5c 66 60 c0 93 88 | 5c 66 84 82 00 0e 09 41 |..\f`...|\f.....A|
|000030c0| 16 09 0e 0b 54 16 0b 0e | 5c 66 cd 0e 09 40 93 88 |....T...|\f...@..|
|000030d0| 29 82 26 00 0e 09 41 16 | 09 0e 5c 66 cd 0e 09 40 |).&...A.|..\f...@|
|000030e0| 93 88 82 26 00 0b 71 88 | 5c 66 84 a8 00 0d 83 a4 |...&..q.|\f......|
|000030f0| 00 d6 20 88 c0 82 ae 00 | d7 5c 66 d8 5c 22 88 d8 |.. .....|.\f.\"..|
|00003100| 2b 87 22 20 5b 6e 69 6c | 20 63 61 73 65 2d 66 6f |+." [nil| case-fo|
|00003110| 6c 64 2d 73 65 61 72 63 | 68 20 6f 72 69 67 2d 63 |ld-searc|h orig-c|
|00003120| 61 73 65 2d 66 6f 6c 64 | 2d 73 65 61 72 63 68 20 |ase-fold|-search |
|00003130| 62 75 66 20 65 78 70 61 | 6e 73 69 6f 6e 20 6f 6c |buf expa|nsion ol|
|00003140| 64 20 68 65 2d 69 6e 69 | 74 2d 73 74 72 69 6e 67 |d he-ini|t-string|
|00003150| 20 68 65 2d 6c 69 73 74 | 2d 62 65 67 20 62 75 66 | he-list|-beg buf|
|00003160| 66 65 72 2d 6c 69 73 74 | 20 68 65 2d 73 65 61 72 |fer-list| he-sear|
|00003170| 63 68 2d 62 75 66 73 20 | 30 20 68 65 2d 73 65 61 |ch-bufs |0 he-sea|
|00003180| 72 63 68 65 64 2d 6e 2d | 62 75 66 73 20 68 65 2d |rched-n-|bufs he-|
|00003190| 73 65 61 72 63 68 2d 6c | 6f 63 20 31 20 68 65 2d |search-l|oc 1 he-|
|000031a0| 73 65 61 72 63 68 2d 73 | 74 72 69 6e 67 20 22 22 |search-s|tring ""|
|000031b0| 20 68 69 70 70 69 65 2d | 65 78 70 61 6e 64 2d 6d | hippie-|expand-m|
|000031c0| 61 78 2d 62 75 66 66 65 | 72 73 20 6d 61 6a 6f 72 |ax-buffe|rs major|
|000031d0| 2d 6d 6f 64 65 20 68 69 | 70 70 69 65 2d 65 78 70 |-mode hi|ppie-exp|
|000031e0| 61 6e 64 2d 69 67 6e 6f | 72 65 2d 62 75 66 66 65 |and-igno|re-buffe|
|000031f0| 72 73 20 68 65 2d 72 65 | 67 65 78 70 2d 6d 65 6d |rs he-re|gexp-mem|
|00003200| 62 65 72 20 62 75 66 66 | 65 72 2d 6e 61 6d 65 20 |ber buff|er-name |
|00003210| 68 65 2d 6c 69 73 74 2d | 73 65 61 72 63 68 20 68 |he-list-|search h|
|00003220| 65 2d 72 65 73 65 74 2d | 73 74 72 69 6e 67 20 68 |e-reset-|string h|
|00003230| 65 2d 73 75 62 73 74 69 | 74 75 74 65 2d 73 74 72 |e-substi|tute-str|
|00003240| 69 6e 67 20 74 5d 20 33 | 20 28 23 24 20 2e 20 31 |ing t] 3| (#$ . 1|
|00003250| 32 30 33 39 29 5d 29 0a | 28 64 65 66 61 6c 69 61 |2039)]).|(defalia|
|00003260| 73 20 27 68 65 2d 6c 69 | 73 74 2d 73 65 61 72 63 |s 'he-li|st-searc|
|00003270| 68 20 23 5b 28 73 74 72 | 20 72 65 76 65 72 73 65 |h #[(str| reverse|
|00003280| 29 20 22 c0 89 89 89 19 | 1a 1b 1c 5c 66 84 57 00 |) ".....|...\f.W.|
|00003290| 0d 83 19 00 c6 0e 07 c0 | c8 23 82 1f 00 c9 0e 07 |........|.#......|
|000032a0| c0 c8 23 83 57 00 60 12 | ca 94 89 13 62 88 c0 11 |..#.W.`.|....b...|
|000032b0| c0 cb cc 8f 88 0d 83 3e | 00 60 0e 0d 56 83 3e 00 |.......>|.`..V.>.|
|000032c0| c8 11 09 84 51 00 0b 60 | 7b 14 ce 5c 66 0e 0f c8 |....Q..`|{..\f...|
|000032d0| 23 83 51 00 c0 14 5c 6e | 62 88 82 08 00 5c 66 2c |#.Q...\n|b....\f,|
|000032e0| 87 22 20 5b 6e 69 6c 20 | 65 72 72 20 70 6f 73 20 |." [nil |err pos |
|000032f0| 62 65 67 20 72 65 73 75 | 6c 74 20 72 65 76 65 72 |beg resu|lt rever|
|00003300| 73 65 20 73 65 61 72 63 | 68 2d 62 61 63 6b 77 61 |se searc|h-backwa|
|00003310| 72 64 20 73 74 72 20 74 | 20 73 65 61 72 63 68 2d |rd str t| search-|
|00003320| 66 6f 72 77 61 72 64 20 | 30 20 28 66 6f 72 77 61 |forward |0 (forwa|
|00003330| 72 64 2d 6c 69 73 74 20 | 31 29 20 28 28 65 72 72 |rd-list |1) ((err|
|00003340| 6f 72 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |or (byte|-code ".|
|00003350| 11 c0 87 22 20 5b 74 20 | 65 72 72 5d 20 31 29 29 |..." [t |err] 1))|
|00003360| 29 20 68 65 2d 73 74 72 | 69 6e 67 2d 62 65 67 20 |) he-str|ing-beg |
|00003370| 68 65 2d 73 74 72 69 6e | 67 2d 6d 65 6d 62 65 72 |he-strin|g-member|
|00003380| 20 68 65 2d 74 72 69 65 | 64 2d 74 61 62 6c 65 5d | he-trie|d-table]|
|00003390| 20 35 5d 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 | 5]).(de|falias '|
|000033a0| 68 65 2d 6c 69 73 74 2d | 62 65 67 20 23 5b 6e 69 |he-list-|beg #[ni|
|000033b0| 6c 20 22 8a c0 c1 c2 8f | 88 60 29 87 22 20 5b 6e |l ".....|.`)." [n|
|000033c0| 69 6c 20 28 62 61 63 6b | 77 61 72 64 2d 75 70 2d |il (back|ward-up-|
|000033d0| 6c 69 73 74 20 31 29 20 | 28 28 65 72 72 6f 72 29 |list 1) |((error)|
|000033e0| 29 5d 20 33 5d 29 0a 23 | 40 32 36 38 20 54 72 79 |)] 3]).#|@268 Try|
|000033f0| 20 74 6f 20 65 78 70 61 | 6e 64 20 77 6f 72 64 20 | to expa|nd word |
|00003400| 62 65 66 6f 72 65 20 70 | 6f 69 6e 74 20 61 63 63 |before p|oint acc|
|00003410| 6f 72 64 69 6e 67 20 74 | 6f 20 61 6c 6c 20 61 62 |ording t|o all ab|
|00003420| 62 72 65 76 20 74 61 62 | 6c 65 73 2e 0a 54 68 65 |brev tab|les..The|
|00003430| 20 61 72 67 75 6d 65 6e | 74 20 4f 4c 44 20 68 61 | argumen|t OLD ha|
|00003440| 73 20 74 6f 20 62 65 20 | 6e 69 6c 20 74 68 65 20 |s to be |nil the |
|00003450| 66 69 72 73 74 20 63 61 | 6c 6c 20 6f 66 20 74 68 |first ca|ll of th|
|00003460| 69 73 20 66 75 6e 63 74 | 69 6f 6e 2c 20 61 6e 64 |is funct|ion, and|
|00003470| 20 74 0a 66 6f 72 20 73 | 75 62 73 65 71 75 65 6e | t.for s|ubsequen|
|00003480| 74 20 63 61 6c 6c 73 20 | 28 66 6f 72 20 66 75 72 |t calls |(for fur|
|00003490| 74 68 65 72 20 70 6f 73 | 73 69 62 6c 65 20 65 78 |ther pos|sible ex|
|000034a0| 70 61 6e 73 69 6f 6e 73 | 20 6f 66 20 74 68 65 20 |pansions| of the |
|000034b0| 73 61 6d 65 0a 73 74 72 | 69 6e 67 29 2e 20 20 49 |same.str|ing). I|
|000034c0| 74 20 72 65 74 75 72 6e | 73 20 74 20 69 66 20 61 |t return|s t if a|
|000034d0| 20 6e 65 77 20 65 78 70 | 61 6e 73 69 6f 6e 20 69 | new exp|ansion i|
|000034e0| 73 20 66 6f 75 6e 64 2c | 20 6e 69 6c 20 6f 74 68 |s found,| nil oth|
|000034f0| 65 72 77 69 73 65 2e 1f | 0a 28 64 65 66 61 6c 69 |erwise..|.(defali|
|00003500| 61 73 20 27 74 72 79 2d | 65 78 70 61 6e 64 2d 61 |as 'try-|expand-a|
|00003510| 6c 6c 2d 61 62 62 72 65 | 76 73 20 23 5b 28 6f 6c |ll-abbre|vs #[(ol|
|00003520| 64 29 20 22 08 84 1b 00 | c1 c2 20 60 5c 22 88 0b |d) "....|.. `\"..|
|00003530| c4 9a 3f 85 19 00 c5 c6 | c7 c8 0e 09 5c 22 5c 22 |..?.....|....\"\"|
|00003540| 16 5c 6e 0e 5c 6e 83 3a | 00 0e 5c 6e 40 83 31 00 |.\n.\n.:|..\n@.1.|
|00003550| cb 0e 5c 6e 40 0e 5c 66 | cd 23 83 3a 00 0e 5c 6e |..\n@.\f|.#.:..\n|
|00003560| 41 89 16 5c 6e 84 20 00 | 0e 5c 6e 84 48 00 08 83 |A..\n. .|.\n.H...|
|00003570| 46 00 ce 20 88 cf 87 d0 | 0e 5c 6e 40 cd 5c 22 88 |F.. ....|.\n@.\".|
|00003580| 0e 5c 6e 41 16 5c 6e cd | 87 22 20 5b 6f 6c 64 20 |.\nA.\n.|." [old |
|00003590| 68 65 2d 69 6e 69 74 2d | 73 74 72 69 6e 67 20 68 |he-init-|string h|
|000035a0| 65 2d 64 61 62 62 72 65 | 76 2d 62 65 67 20 68 65 |e-dabbre|v-beg he|
|000035b0| 2d 73 65 61 72 63 68 2d | 73 74 72 69 6e 67 20 22 |-search-|string "|
|000035c0| 22 20 6d 61 70 63 61 72 | 20 23 5b 28 73 79 6d 29 |" mapcar| #[(sym)|
|000035d0| 20 22 c0 09 21 85 15 00 | c2 c3 09 21 21 85 15 00 | "..!...|...!!...|
|000035e0| c4 0d 97 c3 09 21 5c 22 | 87 22 20 5b 62 6f 75 6e |.....!\"|." [boun|
|000035f0| 64 70 20 73 79 6d 20 76 | 65 63 74 6f 72 70 20 65 |dp sym v|ectorp e|
|00003600| 76 61 6c 20 61 62 62 72 | 65 76 2d 65 78 70 61 6e |val abbr|ev-expan|
|00003610| 73 69 6f 6e 20 68 65 2d | 73 65 61 72 63 68 2d 73 |sion he-|search-s|
|00003620| 74 72 69 6e 67 5d 20 34 | 5d 20 61 70 70 65 6e 64 |tring] 4|] append|
|00003630| 20 28 6c 6f 63 61 6c 2d | 61 62 62 72 65 76 2d 74 | (local-|abbrev-t|
|00003640| 61 62 6c 65 20 67 6c 6f | 62 61 6c 2d 61 62 62 72 |able glo|bal-abbr|
|00003650| 65 76 2d 74 61 62 6c 65 | 29 20 61 62 62 72 65 76 |ev-table|) abbrev|
|00003660| 2d 74 61 62 6c 65 2d 6e | 61 6d 65 2d 6c 69 73 74 |-table-n|ame-list|
|00003670| 20 68 65 2d 65 78 70 61 | 6e 64 2d 6c 69 73 74 20 | he-expa|nd-list |
|00003680| 68 65 2d 73 74 72 69 6e | 67 2d 6d 65 6d 62 65 72 |he-strin|g-member|
|00003690| 20 68 65 2d 74 72 69 65 | 64 2d 74 61 62 6c 65 20 | he-trie|d-table |
|000036a0| 74 20 68 65 2d 72 65 73 | 65 74 2d 73 74 72 69 6e |t he-res|et-strin|
|000036b0| 67 20 6e 69 6c 20 68 65 | 2d 73 75 62 73 74 69 74 |g nil he|-substit|
|000036c0| 75 74 65 2d 73 74 72 69 | 6e 67 5d 20 36 20 28 23 |ute-stri|ng] 6 (#|
|000036d0| 24 20 2e 20 31 33 32 39 | 33 29 5d 29 0a 23 40 32 |$ . 1329|3)]).#@2|
|000036e0| 36 38 20 54 72 79 20 74 | 6f 20 65 78 70 61 6e 64 |68 Try t|o expand|
|000036f0| 20 77 6f 72 64 20 22 64 | 79 6e 61 6d 69 63 61 6c | word "d|ynamical|
|00003700| 6c 79 22 2c 20 73 65 61 | 72 63 68 69 6e 67 20 74 |ly", sea|rching t|
|00003710| 68 65 20 63 75 72 72 65 | 6e 74 20 62 75 66 66 65 |he curre|nt buffe|
|00003720| 72 2e 0a 54 68 65 20 61 | 72 67 75 6d 65 6e 74 20 |r..The a|rgument |
|00003730| 4f 4c 44 20 68 61 73 20 | 74 6f 20 62 65 20 6e 69 |OLD has |to be ni|
|00003740| 6c 20 74 68 65 20 66 69 | 72 73 74 20 63 61 6c 6c |l the fi|rst call|
|00003750| 20 6f 66 20 74 68 69 73 | 20 66 75 6e 63 74 69 6f | of this| functio|
|00003760| 6e 2c 20 61 6e 64 20 74 | 0a 66 6f 72 20 73 75 62 |n, and t|.for sub|
|00003770| 73 65 71 75 65 6e 74 20 | 63 61 6c 6c 73 20 28 66 |sequent |calls (f|
|00003780| 6f 72 20 66 75 72 74 68 | 65 72 20 70 6f 73 73 69 |or furth|er possi|
|00003790| 62 6c 65 20 65 78 70 61 | 6e 73 69 6f 6e 73 20 6f |ble expa|nsions o|
|000037a0| 66 20 74 68 65 20 73 61 | 6d 65 0a 73 74 72 69 6e |f the sa|me.strin|
|000037b0| 67 29 2e 20 20 49 74 20 | 72 65 74 75 72 6e 73 20 |g). It |returns |
|000037c0| 74 20 69 66 20 61 20 6e | 65 77 20 65 78 70 61 6e |t if a n|ew expan|
|000037d0| 73 69 6f 6e 20 69 73 20 | 66 6f 75 6e 64 2c 20 6e |sion is |found, n|
|000037e0| 69 6c 20 6f 74 68 65 72 | 77 69 73 65 2e 1f 0a 28 |il other|wise...(|
|000037f0| 64 65 66 61 6c 69 61 73 | 20 27 74 72 79 2d 65 78 |defalias| 'try-ex|
|00003800| 70 61 6e 64 2d 64 61 62 | 62 72 65 76 20 23 5b 28 |pand-dab|brev #[(|
|00003810| 6f 6c 64 29 20 22 c0 19 | 5c 6e 84 15 00 c3 c4 20 |old) "..|\n..... |
|00003820| 60 5c 22 88 0d 0e 06 c0 | 93 88 c7 16 08 0e 09 ca |`\".....|........|
|00003830| 9a 84 50 00 8a 0e 08 83 | 3d 00 0d 62 88 cb 0e 09 |..P.....|=..b....|
|00003840| c7 5c 22 11 0d 60 c0 93 | 88 09 84 3d 00 0d 0e 5c |.\"..`..|...=...\|
|00003850| 66 c0 93 88 c0 16 08 09 | 84 4f 00 0d 62 88 cb 0e |f.......|.O..b...|
|00003860| 09 c0 5c 22 11 0d 60 c0 | 93 88 29 09 84 5f 00 5c |..\"..`.|..).._.\|
|00003870| 6e 83 5b 00 cd 20 88 c0 | 82 65 00 ce 09 c7 5c 22 |n.[.. ..|.e....\"|
|00003880| 88 c7 29 87 22 20 5b 6e | 69 6c 20 65 78 70 61 6e |..)." [n|il expan|
|00003890| 73 69 6f 6e 20 6f 6c 64 | 20 68 65 2d 69 6e 69 74 |sion old| he-init|
|000038a0| 2d 73 74 72 69 6e 67 20 | 68 65 2d 64 61 62 62 72 |-string |he-dabbr|
|000038b0| 65 76 2d 62 65 67 20 68 | 65 2d 73 65 61 72 63 68 |ev-beg h|e-search|
|000038c0| 2d 6c 6f 63 20 68 65 2d | 73 74 72 69 6e 67 2d 62 |-loc he-|string-b|
|000038d0| 65 67 20 74 20 68 65 2d | 73 65 61 72 63 68 2d 62 |eg t he-|search-b|
|000038e0| 77 20 68 65 2d 73 65 61 | 72 63 68 2d 73 74 72 69 |w he-sea|rch-stri|
|000038f0| 6e 67 20 22 22 20 68 65 | 2d 64 61 62 62 72 65 76 |ng "" he|-dabbrev|
|00003900| 2d 73 65 61 72 63 68 20 | 68 65 2d 73 74 72 69 6e |-search |he-strin|
|00003910| 67 2d 65 6e 64 20 68 65 | 2d 72 65 73 65 74 2d 73 |g-end he|-reset-s|
|00003920| 74 72 69 6e 67 20 68 65 | 2d 73 75 62 73 74 69 74 |tring he|-substit|
|00003930| 75 74 65 2d 73 74 72 69 | 6e 67 5d 20 33 20 28 23 |ute-stri|ng] 3 (#|
|00003940| 24 20 2e 20 31 34 30 35 | 31 29 5d 29 0a 23 40 32 |$ . 1405|1)]).#@2|
|00003950| 36 39 20 54 72 69 65 73 | 20 74 6f 20 65 78 70 61 |69 Tries| to expa|
|00003960| 6e 64 20 77 6f 72 64 20 | 22 64 79 6e 61 6d 69 63 |nd word |"dynamic|
|00003970| 61 6c 6c 79 22 2c 20 73 | 65 61 72 63 68 69 6e 67 |ally", s|earching|
|00003980| 20 61 6c 6c 20 6f 74 68 | 65 72 20 62 75 66 66 65 | all oth|er buffe|
|00003990| 72 73 2e 0a 54 68 65 20 | 61 72 67 75 6d 65 6e 74 |rs..The |argument|
|000039a0| 20 4f 4c 44 20 68 61 73 | 20 74 6f 20 62 65 20 6e | OLD has| to be n|
|000039b0| 69 6c 20 74 68 65 20 66 | 69 72 73 74 20 63 61 6c |il the f|irst cal|
|000039c0| 6c 20 6f 66 20 74 68 69 | 73 20 66 75 6e 63 74 69 |l of thi|s functi|
|000039d0| 6f 6e 2c 20 61 6e 64 20 | 74 0a 66 6f 72 20 73 75 |on, and |t.for su|
|000039e0| 62 73 65 71 75 65 6e 74 | 20 63 61 6c 6c 73 20 28 |bsequent| calls (|
|000039f0| 66 6f 72 20 66 75 72 74 | 68 65 72 20 70 6f 73 73 |for furt|her poss|
|00003a00| 69 62 6c 65 20 65 78 70 | 61 6e 73 69 6f 6e 73 20 |ible exp|ansions |
|00003a10| 6f 66 20 74 68 65 20 73 | 61 6d 65 0a 73 74 72 69 |of the s|ame.stri|
|00003a20| 6e 67 29 2e 20 20 49 74 | 20 72 65 74 75 72 6e 73 |ng). It| returns|
|00003a30| 20 74 20 69 66 20 61 20 | 6e 65 77 20 65 78 70 61 | t if a |new expa|
|00003a40| 6e 73 69 6f 6e 20 69 73 | 20 66 6f 75 6e 64 2c 20 |nsion is| found, |
|00003a50| 6e 69 6c 20 6f 74 68 65 | 72 77 69 73 65 2e 1f 0a |nil othe|rwise...|
|00003a60| 28 64 65 66 61 6c 69 61 | 73 20 27 74 72 79 2d 65 |(defalia|s 'try-e|
|00003a70| 78 70 61 6e 64 2d 64 61 | 62 62 72 65 76 2d 61 6c |xpand-da|bbrev-al|
|00003a80| 6c 2d 62 75 66 66 65 72 | 73 20 23 5b 28 6f 6c 64 |l-buffer|s #[(old|
|00003a90| 29 20 22 c0 70 09 1a 1b | 1c 0d 84 1f 00 c6 c7 20 |) ".p...|....... |
|00003aa0| 60 5c 22 88 c8 20 16 09 | ca 16 0b 0e 5c 66 cd 0e |`\".. ..|....\f..|
|00003ab0| 09 40 93 88 0e 0e cf 9a | 84 96 00 0e 09 83 96 00 |.@......|........|
|00003ac0| 5c 66 84 96 00 0e 10 83 | 3c 00 0e 0b 0e 10 57 83 |\f......|<.....W.|
|00003ad0| 96 00 0e 09 40 71 88 70 | 0b 3d 84 86 00 0e 11 0e |....@q.p|.=......|
|00003ae0| 12 3e 84 86 00 d3 d4 20 | 0e 12 5c 22 84 86 00 8a |.>..... |..\"....|
|00003af0| 0e 5c 66 62 88 5c 6e 19 | d5 0e 0e c0 5c 22 29 14 |.\fb.\n.|....\").|
|00003b00| 0e 5c 66 60 c0 93 88 5c | 66 84 82 00 0e 09 41 16 |.\f`...\|f.....A.|
|00003b10| 09 0e 0b 54 16 0b 0e 5c | 66 cd 0e 09 40 93 88 29 |...T...\|f...@..)|
|00003b20| 82 26 00 0e 09 41 16 09 | 0e 5c 66 cd 0e 09 40 93 |.&...A..|.\f...@.|
|00003b30| 88 82 26 00 0b 71 88 5c | 66 84 a8 00 0d 83 a4 00 |..&..q.\|f.......|
|00003b40| d6 20 88 c0 82 ae 00 d7 | 5c 66 d8 5c 22 88 d8 2b |. ......|\f.\"..+|
|00003b50| 87 22 20 5b 6e 69 6c 20 | 63 61 73 65 2d 66 6f 6c |." [nil |case-fol|
|00003b60| 64 2d 73 65 61 72 63 68 | 20 6f 72 69 67 2d 63 61 |d-search| orig-ca|
|00003b70| 73 65 2d 66 6f 6c 64 2d | 73 65 61 72 63 68 20 62 |se-fold-|search b|
|00003b80| 75 66 20 65 78 70 61 6e | 73 69 6f 6e 20 6f 6c 64 |uf expan|sion old|
|00003b90| 20 68 65 2d 69 6e 69 74 | 2d 73 74 72 69 6e 67 20 | he-init|-string |
|00003ba0| 68 65 2d 64 61 62 62 72 | 65 76 2d 62 65 67 20 62 |he-dabbr|ev-beg b|
|00003bb0| 75 66 66 65 72 2d 6c 69 | 73 74 20 68 65 2d 73 65 |uffer-li|st he-se|
|00003bc0| 61 72 63 68 2d 62 75 66 | 73 20 30 20 68 65 2d 73 |arch-buf|s 0 he-s|
|00003bd0| 65 61 72 63 68 65 64 2d | 6e 2d 62 75 66 73 20 68 |earched-|n-bufs h|
|00003be0| 65 2d 73 65 61 72 63 68 | 2d 6c 6f 63 20 31 20 68 |e-search|-loc 1 h|
|00003bf0| 65 2d 73 65 61 72 63 68 | 2d 73 74 72 69 6e 67 20 |e-search|-string |
|00003c00| 22 22 20 68 69 70 70 69 | 65 2d 65 78 70 61 6e 64 |"" hippi|e-expand|
|00003c10| 2d 6d 61 78 2d 62 75 66 | 66 65 72 73 20 6d 61 6a |-max-buf|fers maj|
|00003c20| 6f 72 2d 6d 6f 64 65 20 | 68 69 70 70 69 65 2d 65 |or-mode |hippie-e|
|00003c30| 78 70 61 6e 64 2d 69 67 | 6e 6f 72 65 2d 62 75 66 |xpand-ig|nore-buf|
|00003c40| 66 65 72 73 20 68 65 2d | 72 65 67 65 78 70 2d 6d |fers he-|regexp-m|
|00003c50| 65 6d 62 65 72 20 62 75 | 66 66 65 72 2d 6e 61 6d |ember bu|ffer-nam|
|00003c60| 65 20 68 65 2d 64 61 62 | 62 72 65 76 2d 73 65 61 |e he-dab|brev-sea|
|00003c70| 72 63 68 20 68 65 2d 72 | 65 73 65 74 2d 73 74 72 |rch he-r|eset-str|
|00003c80| 69 6e 67 20 68 65 2d 73 | 75 62 73 74 69 74 75 74 |ing he-s|ubstitut|
|00003c90| 65 2d 73 74 72 69 6e 67 | 20 74 5d 20 33 20 28 23 |e-string| t] 3 (#|
|00003ca0| 24 20 2e 20 31 34 36 37 | 35 29 5d 29 0a 23 40 32 |$ . 1467|5)]).#@2|
|00003cb0| 37 30 20 54 72 79 20 74 | 6f 20 65 78 70 61 6e 64 |70 Try t|o expand|
|00003cc0| 20 77 6f 72 64 20 22 64 | 79 6e 61 6d 69 63 61 6c | word "d|ynamical|
|00003cd0| 6c 79 22 2c 20 73 65 61 | 72 63 68 69 6e 67 20 76 |ly", sea|rching v|
|00003ce0| 69 73 69 62 6c 65 20 77 | 69 6e 64 6f 77 20 70 61 |isible w|indow pa|
|00003cf0| 72 74 73 2e 0a 54 68 65 | 20 61 72 67 75 6d 65 6e |rts..The| argumen|
|00003d00| 74 20 4f 4c 44 20 68 61 | 73 20 74 6f 20 62 65 20 |t OLD ha|s to be |
|00003d10| 6e 69 6c 20 74 68 65 20 | 66 69 72 73 74 20 63 61 |nil the |first ca|
|00003d20| 6c 6c 20 6f 66 20 74 68 | 69 73 20 66 75 6e 63 74 |ll of th|is funct|
|00003d30| 69 6f 6e 2c 20 61 6e 64 | 20 74 0a 66 6f 72 20 73 |ion, and| t.for s|
|00003d40| 75 62 73 65 71 75 65 6e | 74 20 63 61 6c 6c 73 20 |ubsequen|t calls |
|00003d50| 28 66 6f 72 20 66 75 72 | 74 68 65 72 20 70 6f 73 |(for fur|ther pos|
|00003d60| 73 69 62 6c 65 20 65 78 | 70 61 6e 73 69 6f 6e 73 |sible ex|pansions|
|00003d70| 20 6f 66 20 74 68 65 20 | 73 61 6d 65 0a 73 74 72 | of the |same.str|
|00003d80| 69 6e 67 29 2e 20 20 49 | 74 20 72 65 74 75 72 6e |ing). I|t return|
|00003d90| 73 20 74 20 69 66 20 61 | 20 6e 65 77 20 65 78 70 |s t if a| new exp|
|00003da0| 61 6e 73 69 6f 6e 20 69 | 73 20 66 6f 75 6e 64 2c |ansion i|s found,|
|00003db0| 20 6e 69 6c 20 6f 74 68 | 65 72 77 69 73 65 2e 1f | nil oth|erwise..|
|00003dc0| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 74 72 79 2d |.(defali|as 'try-|
|00003dd0| 65 78 70 61 6e 64 2d 64 | 61 62 62 72 65 76 2d 76 |expand-d|abbrev-v|
|00003de0| 69 73 69 62 6c 65 20 23 | 5b 28 6f 6c 64 29 20 22 |isible #|[(old) "|
|00003df0| c0 70 c1 c2 c3 20 21 21 | 83 0f 00 c4 82 10 00 c5 |.p... !!|........|
|00003e00| 1e 06 1e 07 1e 08 0e 09 | 84 31 00 ca cb 20 60 5c |........|.1... `\|
|00003e10| 22 88 c3 20 16 5c 66 0e | 0d ce 0e 5c 66 21 cf 0e |".. .\f.|...\f!..|
|00003e20| 5c 66 21 93 88 0e 10 d1 | 9a 84 b0 00 d2 0e 0d 21 |\f!.....|.......!|
|00003e30| 83 b0 00 0e 08 84 b0 00 | 8a d3 0e 0d 21 71 88 0e |........|....!q..|
|00003e40| 0d 62 88 d4 0e 10 c0 d5 | 0e 5c 66 21 23 89 16 08 |.b......|.\f!#...|
|00003e50| 83 7c 00 d3 0e 16 21 70 | 3d 83 7c 00 d2 0e 16 21 |.|....!p|=.|....!|
|00003e60| d7 94 3d 83 7c 00 d4 0e | 10 c0 d5 0e 5c 66 21 23 |..=.|...|....\f!#|
|00003e70| 16 08 0e 0d 60 70 93 88 | 29 0e 08 84 31 00 d8 0e |....`p..|)...1...|
|00003e80| 5c 66 c0 0e 06 23 89 16 | 5c 66 c3 20 3d 83 a1 00 |\f...#..|\f. =...|
|00003e90| 0e 0d c0 89 93 88 82 31 | 00 0e 0d ce 0e 5c 66 21 |.......1|.....\f!|
|00003ea0| cf 0e 5c 66 21 93 88 82 | 31 00 0e 07 71 88 0e 08 |..\f!...|1...q...|
|00003eb0| 84 c5 00 0e 09 83 c1 00 | d9 20 88 c0 82 cc 00 da |........|. ......|
|00003ec0| 0e 08 c5 5c 22 88 c5 2b | 87 22 20 5b 6e 69 6c 20 |...\"..+|." [nil |
|00003ed0| 66 72 61 6d 65 2d 76 69 | 73 69 62 6c 65 2d 70 20 |frame-vi|sible-p |
|00003ee0| 77 69 6e 64 6f 77 2d 66 | 72 61 6d 65 20 73 65 6c |window-f|rame sel|
|00003ef0| 65 63 74 65 64 2d 77 69 | 6e 64 6f 77 20 76 69 73 |ected-wi|ndow vis|
|00003f00| 69 62 6c 65 20 74 20 66 | 6c 61 67 20 62 75 66 20 |ible t f|lag buf |
|00003f10| 65 78 70 61 6e 73 69 6f | 6e 20 6f 6c 64 20 68 65 |expansio|n old he|
|00003f20| 2d 69 6e 69 74 2d 73 74 | 72 69 6e 67 20 68 65 2d |-init-st|ring he-|
|00003f30| 64 61 62 62 72 65 76 2d | 62 65 67 20 68 65 2d 73 |dabbrev-|beg he-s|
|00003f40| 65 61 72 63 68 2d 77 69 | 6e 64 6f 77 20 68 65 2d |earch-wi|ndow he-|
|00003f50| 73 65 61 72 63 68 2d 6c | 6f 63 20 77 69 6e 64 6f |search-l|oc windo|
|00003f60| 77 2d 73 74 61 72 74 20 | 77 69 6e 64 6f 77 2d 62 |w-start |window-b|
|00003f70| 75 66 66 65 72 20 68 65 | 2d 73 65 61 72 63 68 2d |uffer he|-search-|
|00003f80| 73 74 72 69 6e 67 20 22 | 22 20 6d 61 72 6b 65 72 |string "|" marker|
|00003f90| 2d 70 6f 73 69 74 69 6f | 6e 20 6d 61 72 6b 65 72 |-positio|n marker|
|00003fa0| 2d 62 75 66 66 65 72 20 | 68 65 2d 64 61 62 62 72 |-buffer |he-dabbr|
|00003fb0| 65 76 2d 73 65 61 72 63 | 68 20 77 69 6e 64 6f 77 |ev-searc|h window|
|00003fc0| 2d 65 6e 64 20 68 65 2d | 73 74 72 69 6e 67 2d 62 |-end he-|string-b|
|00003fd0| 65 67 20 30 20 6e 65 78 | 74 2d 77 69 6e 64 6f 77 |eg 0 nex|t-window|
|00003fe0| 20 68 65 2d 72 65 73 65 | 74 2d 73 74 72 69 6e 67 | he-rese|t-string|
|00003ff0| 20 68 65 2d 73 75 62 73 | 74 69 74 75 74 65 2d 73 | he-subs|titute-s|
|00004000| 74 72 69 6e 67 5d 20 36 | 20 28 23 24 20 2e 20 31 |tring] 6| (#$ . 1|
|00004010| 35 35 33 39 29 5d 29 0a | 28 64 65 66 61 6c 69 61 |5539)]).|(defalia|
|00004020| 73 20 27 68 65 2d 64 61 | 62 62 72 65 76 2d 73 65 |s 'he-da|bbrev-se|
|00004030| 61 72 63 68 20 23 5b 28 | 70 61 74 74 65 72 6e 20 |arch #[(|pattern |
|00004040| 26 6f 70 74 69 6f 6e 61 | 6c 20 72 65 76 65 72 73 |&optiona|l revers|
|00004050| 65 20 6c 69 6d 69 74 29 | 20 22 c0 09 c2 48 7a c3 |e limit)| "...Hz.|
|00004060| 3d 83 12 00 c4 09 21 c5 | 50 82 18 00 c6 c4 09 21 |=.....!.|P......!|
|00004070| c5 51 1e 07 1e 08 0e 08 | 84 63 00 0e 09 83 30 00 |.Q......|.c....0.|
|00004080| ca 0e 07 0e 0b cc 23 82 | 37 00 cd 0e 07 0e 0b cc |......#.|7.......|
|00004090| 23 83 63 00 c2 94 c2 95 | 7b 16 08 c2 94 65 56 83 |#.c.....|{....eV.|
|000040a0| 52 00 c2 94 53 66 7a ce | 3e 84 5c 5c 00 cf 0e 08 |R...Sfz.|>.\\....|
|000040b0| 0e 10 cc 23 83 1c 00 c0 | 89 16 08 83 21 00 0e 08 |...#....|....!...|
|000040c0| 2a 87 22 20 5b 6e 69 6c | 20 70 61 74 74 65 72 6e |*." [nil| pattern|
|000040d0| 20 30 20 39 35 20 72 65 | 67 65 78 70 2d 71 75 6f | 0 95 re|gexp-quo|
|000040e0| 74 65 20 22 5c 5c 28 5c | 5c 73 77 5c 5c 7c 5c 5c |te "\\(\|\sw\\|\\|
|000040f0| 73 5f 5c 5c 29 2b 22 20 | 22 5c 5c 3c 22 20 72 65 |s_\\)+" |"\\<" re|
|00004100| 67 70 61 74 20 72 65 73 | 75 6c 74 20 72 65 76 65 |gpat res|ult reve|
|00004110| 72 73 65 20 72 65 2d 73 | 65 61 72 63 68 2d 62 61 |rse re-s|earch-ba|
|00004120| 63 6b 77 61 72 64 20 6c | 69 6d 69 74 20 74 20 72 |ckward l|imit t r|
|00004130| 65 2d 73 65 61 72 63 68 | 2d 66 6f 72 77 61 72 64 |e-search|-forward|
|00004140| 20 28 39 35 20 31 31 39 | 29 20 68 65 2d 73 74 72 | (95 119|) he-str|
|00004150| 69 6e 67 2d 6d 65 6d 62 | 65 72 20 68 65 2d 74 72 |ing-memb|er he-tr|
|00004160| 69 65 64 2d 74 61 62 6c | 65 5d 20 35 5d 29 0a 23 |ied-tabl|e] 5]).#|
|00004170| 40 37 31 20 4e 6f 6e 2d | 4e 49 4c 20 6d 65 61 6e |@71 Non-|NIL mean|
|00004180| 73 20 74 6f 6c 65 72 61 | 74 65 20 74 72 61 69 6c |s tolera|te trail|
|00004190| 69 6e 67 20 73 70 61 63 | 65 73 20 69 6e 20 74 68 |ing spac|es in th|
|000041a0| 65 20 61 62 62 72 65 76 | 69 61 74 69 6f 6e 20 74 |e abbrev|iation t|
|000041b0| 6f 20 65 78 70 61 6e 64 | 2e 1f 0a 28 64 65 66 76 |o expand|...(defv|
|000041c0| 61 72 20 68 65 2d 64 61 | 62 62 72 65 76 2d 73 6b |ar he-da|bbrev-sk|
|000041d0| 69 70 2d 73 70 61 63 65 | 20 6e 69 6c 20 28 23 24 |ip-space| nil (#$|
|000041e0| 20 2e 20 31 36 37 35 36 | 29 29 0a 28 64 65 66 61 | . 16756|)).(defa|
|000041f0| 6c 69 61 73 20 27 68 65 | 2d 64 61 62 62 72 65 76 |lias 'he|-dabbrev|
|00004200| 2d 62 65 67 20 23 5b 6e | 69 6c 20 22 60 18 8a 09 |-beg #[n|il "`...|
|00004210| 83 0b 00 c2 c3 21 88 c2 | c4 21 c5 55 83 17 00 08 |.....!..|.!.U....|
|00004220| 82 18 00 60 2a 87 22 20 | 5b 6f 70 20 68 65 2d 64 |...`*." |[op he-d|
|00004230| 61 62 62 72 65 76 2d 73 | 6b 69 70 2d 73 70 61 63 |abbrev-s|kip-spac|
|00004240| 65 20 73 6b 69 70 2d 73 | 79 6e 74 61 78 2d 62 61 |e skip-s|yntax-ba|
|00004250| 63 6b 77 61 72 64 20 22 | 2e 20 22 20 22 77 5f 22 |ckward "|. " "w_"|
|00004260| 20 30 5d 20 32 5d 29 0a | 23 40 32 36 35 20 54 72 | 0] 2]).|#@265 Tr|
|00004270| 79 20 74 6f 20 65 78 70 | 61 6e 64 20 77 6f 72 64 |y to exp|and word|
|00004280| 20 22 64 79 6e 61 6d 69 | 63 61 6c 6c 79 22 2c 20 | "dynami|cally", |
|00004290| 73 65 61 72 63 68 69 6e | 67 20 74 68 65 20 6b 69 |searchin|g the ki|
|000042a0| 6c 6c 20 72 69 6e 67 2e | 0a 54 68 65 20 61 72 67 |ll ring.|.The arg|
|000042b0| 75 6d 65 6e 74 20 4f 4c | 44 20 68 61 73 20 74 6f |ument OL|D has to|
|000042c0| 20 62 65 20 6e 69 6c 20 | 74 68 65 20 66 69 72 73 | be nil |the firs|
|000042d0| 74 20 63 61 6c 6c 20 6f | 66 20 74 68 69 73 20 66 |t call o|f this f|
|000042e0| 75 6e 63 74 69 6f 6e 2c | 20 61 6e 64 20 74 0a 66 |unction,| and t.f|
|000042f0| 6f 72 20 73 75 62 73 65 | 71 75 65 6e 74 20 63 61 |or subse|quent ca|
|00004300| 6c 6c 73 20 28 66 6f 72 | 20 66 75 72 74 68 65 72 |lls (for| further|
|00004310| 20 70 6f 73 73 69 62 6c | 65 20 63 6f 6d 70 6c 65 | possibl|e comple|
|00004320| 74 69 6f 6e 73 20 6f 66 | 20 74 68 65 20 73 61 6d |tions of| the sam|
|00004330| 65 0a 73 74 72 69 6e 67 | 29 2e 20 20 49 74 20 72 |e.string|). It r|
|00004340| 65 74 75 72 6e 73 20 74 | 20 69 66 20 61 20 6e 65 |eturns t| if a ne|
|00004350| 77 20 63 6f 6d 70 6c 65 | 74 69 6f 6e 20 69 73 20 |w comple|tion is |
|00004360| 66 6f 75 6e 64 2c 20 6e | 69 6c 20 6f 74 68 65 72 |found, n|il other|
|00004370| 77 69 73 65 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 |wise...(|defalias|
|00004380| 20 27 74 72 79 2d 65 78 | 70 61 6e 64 2d 64 61 62 | 'try-ex|pand-dab|
|00004390| 62 72 65 76 2d 66 72 6f | 6d 2d 6b 69 6c 6c 20 23 |brev-fro|m-kill #|
|000043a0| 5b 28 6f 6c 64 29 20 22 | c0 19 5c 6e 84 1a 00 c3 |[(old) "|..\n....|
|000043b0| c4 20 60 5c 22 88 0d c6 | 9a 3f 85 15 00 0e 07 16 |. `\"...|.?......|
|000043c0| 08 c9 16 5c 6e 0d c6 9a | 84 24 00 cb 0d 21 11 09 |...\n...|.$...!..|
|000043d0| 84 33 00 5c 6e 83 2f 00 | cc 20 88 c0 82 39 00 cd |.3.\n./.|. ...9..|
|000043e0| 09 ce 5c 22 88 ce 29 87 | 22 20 5b 6e 69 6c 20 65 |..\"..).|" [nil e|
|000043f0| 78 70 61 6e 73 69 6f 6e | 20 6f 6c 64 20 68 65 2d |xpansion| old he-|
|00004400| 69 6e 69 74 2d 73 74 72 | 69 6e 67 20 68 65 2d 64 |init-str|ing he-d|
|00004410| 61 62 62 72 65 76 2d 62 | 65 67 20 68 65 2d 73 65 |abbrev-b|eg he-se|
|00004420| 61 72 63 68 2d 73 74 72 | 69 6e 67 20 22 22 20 6b |arch-str|ing "" k|
|00004430| 69 6c 6c 2d 72 69 6e 67 | 20 68 65 2d 65 78 70 61 |ill-ring| he-expa|
|00004440| 6e 64 2d 6c 69 73 74 20 | 30 20 68 65 2d 73 65 61 |nd-list |0 he-sea|
|00004450| 72 63 68 2d 6c 6f 63 32 | 20 68 65 2d 64 61 62 62 |rch-loc2| he-dabb|
|00004460| 72 65 76 2d 6b 69 6c 6c | 2d 73 65 61 72 63 68 20 |rev-kill|-search |
|00004470| 68 65 2d 72 65 73 65 74 | 2d 73 74 72 69 6e 67 20 |he-reset|-string |
|00004480| 68 65 2d 73 75 62 73 74 | 69 74 75 74 65 2d 73 74 |he-subst|itute-st|
|00004490| 72 69 6e 67 20 74 5d 20 | 33 20 28 23 24 20 2e 20 |ring t] |3 (#$ . |
|000044a0| 31 37 30 30 36 29 5d 29 | 0a 28 64 65 66 61 6c 69 |17006)])|.(defali|
|000044b0| 61 73 20 27 68 65 2d 64 | 61 62 62 72 65 76 2d 6b |as 'he-d|abbrev-k|
|000044c0| 69 6c 6c 2d 73 65 61 72 | 63 68 20 23 5b 28 70 61 |ill-sear|ch #[(pa|
|000044d0| 74 74 65 72 6e 29 20 22 | c0 09 c2 48 7a c3 3d 83 |ttern) "|...Hz.=.|
|000044e0| 12 00 c4 09 21 c5 50 82 | 18 00 c6 c4 09 21 c5 51 |....!.P.|.....!.Q|
|000044f0| 0e 07 40 1e 08 1e 09 1e | 5c 6e 0e 5c 6e 84 86 00 |..@.....|\n.\n...|
|00004500| 0e 07 83 86 00 0e 5c 6e | 84 6d 00 cb 0e 09 0e 08 |......\n|.m......|
|00004510| 0e 5c 66 23 83 6d 00 0e | 08 c2 94 c2 95 4f 16 5c |.\f#.m..|.....O.\|
|00004520| 6e c2 94 54 16 5c 66 c2 | 94 c2 56 83 5c 5c 00 0e |n..T.\f.|..V.\\..|
|00004530| 08 c2 94 53 48 7a cd 3e | 84 66 00 ce 0e 5c 6e 0e |...SHz.>|.f...\n.|
|00004540| 0f d0 23 83 2b 00 c0 89 | 16 5c 6e 83 30 00 0e 5c |..#.+...|.\n.0..\|
|00004550| 6e 84 21 00 0e 07 83 21 | 00 0e 07 41 89 16 07 40 |n.!....!|...A...@|
|00004560| 16 08 c2 16 5c 66 82 21 | 00 0e 5c 6e 2b 87 22 20 |....\f.!|..\n+." |
|00004570| 5b 6e 69 6c 20 70 61 74 | 74 65 72 6e 20 30 20 39 |[nil pat|tern 0 9|
|00004580| 35 20 72 65 67 65 78 70 | 2d 71 75 6f 74 65 20 22 |5 regexp|-quote "|
|00004590| 5c 5c 28 5c 5c 73 77 5c | 5c 7c 5c 5c 73 5f 5c 5c |\\(\\sw\|\|\\s_\\|
|000045a0| 29 2b 22 20 22 5c 5c 3c | 22 20 68 65 2d 65 78 70 |)+" "\\<|" he-exp|
|000045b0| 61 6e 64 2d 6c 69 73 74 | 20 6b 69 6c 6c 73 74 72 |and-list| killstr|
|000045c0| 20 72 65 67 70 61 74 20 | 72 65 73 75 6c 74 20 73 | regpat |result s|
|000045d0| 74 72 69 6e 67 2d 6d 61 | 74 63 68 20 68 65 2d 73 |tring-ma|tch he-s|
|000045e0| 65 61 72 63 68 2d 6c 6f | 63 32 20 28 39 35 20 31 |earch-lo|c2 (95 1|
|000045f0| 31 39 29 20 68 65 2d 73 | 74 72 69 6e 67 2d 6d 65 |19) he-s|tring-me|
|00004600| 6d 62 65 72 20 68 65 2d | 74 72 69 65 64 2d 74 61 |mber he-|tried-ta|
|00004610| 62 6c 65 20 74 5d 20 35 | 5d 29 0a 23 40 32 36 32 |ble t] 5|]).#@262|
|00004620| 20 54 72 79 20 74 6f 20 | 63 6f 6d 70 6c 65 74 65 | Try to |complete|
|00004630| 20 74 65 78 74 20 77 69 | 74 68 20 73 6f 6d 65 74 | text wi|th somet|
|00004640| 68 69 6e 67 20 66 72 6f | 6d 20 74 68 65 20 6b 69 |hing fro|m the ki|
|00004650| 6c 6c 20 72 69 6e 67 2e | 0a 54 68 65 20 61 72 67 |ll ring.|.The arg|
|00004660| 75 6d 65 6e 74 20 4f 4c | 44 20 68 61 73 20 74 6f |ument OL|D has to|
|00004670| 20 62 65 20 6e 69 6c 20 | 74 68 65 20 66 69 72 73 | be nil |the firs|
|00004680| 74 20 63 61 6c 6c 20 6f | 66 20 74 68 69 73 20 66 |t call o|f this f|
|00004690| 75 6e 63 74 69 6f 6e 2c | 20 61 6e 64 20 74 0a 66 |unction,| and t.f|
|000046a0| 6f 72 20 73 75 62 73 65 | 71 75 65 6e 74 20 63 61 |or subse|quent ca|
|000046b0| 6c 6c 73 20 28 66 6f 72 | 20 66 75 72 74 68 65 72 |lls (for| further|
|000046c0| 20 70 6f 73 73 69 62 6c | 65 20 63 6f 6d 70 6c 65 | possibl|e comple|
|000046d0| 74 69 6f 6e 73 20 6f 66 | 20 74 68 65 20 73 61 6d |tions of| the sam|
|000046e0| 65 0a 73 74 72 69 6e 67 | 29 2e 20 20 49 74 20 72 |e.string|). It r|
|000046f0| 65 74 75 72 6e 73 20 74 | 20 69 66 20 61 20 6e 65 |eturns t| if a ne|
|00004700| 77 20 63 6f 6d 70 6c 65 | 74 69 6f 6e 20 69 73 20 |w comple|tion is |
|00004710| 66 6f 75 6e 64 2c 20 6e | 69 6c 20 6f 74 68 65 72 |found, n|il other|
|00004720| 77 69 73 65 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 |wise...(|defalias|
|00004730| 20 27 74 72 79 2d 65 78 | 70 61 6e 64 2d 77 68 6f | 'try-ex|pand-who|
|00004740| 6c 65 2d 6b 69 6c 6c 20 | 23 5b 28 6f 6c 64 29 20 |le-kill |#[(old) |
|00004750| 22 c0 19 5c 6e 84 2b 00 | c3 c4 20 60 5c 22 88 c5 |"..\n.+.|.. `\"..|
|00004760| 0e 06 0e 07 5c 22 84 1c | 00 0e 06 0e 07 42 16 07 |....\"..|.....B..|
|00004770| 0e 06 c8 9a 3f 85 26 00 | 0e 09 16 5c 6e c0 16 0b |....?.&.|...\n...|
|00004780| 0e 06 c8 9a 84 37 00 cc | 0e 06 21 11 09 84 46 00 |.....7..|..!...F.|
|00004790| 5c 6e 83 42 00 cd 20 88 | c0 82 4b 00 ce 09 21 88 |\n.B.. .|..K...!.|
|000047a0| cf 29 87 22 20 5b 6e 69 | 6c 20 65 78 70 61 6e 73 |.)." [ni|l expans|
|000047b0| 69 6f 6e 20 6f 6c 64 20 | 68 65 2d 69 6e 69 74 2d |ion old |he-init-|
|000047c0| 73 74 72 69 6e 67 20 68 | 65 2d 6b 69 6c 6c 2d 62 |string h|e-kill-b|
|000047d0| 65 67 20 68 65 2d 73 74 | 72 69 6e 67 2d 6d 65 6d |eg he-st|ring-mem|
|000047e0| 62 65 72 20 68 65 2d 73 | 65 61 72 63 68 2d 73 74 |ber he-s|earch-st|
|000047f0| 72 69 6e 67 20 68 65 2d | 74 72 69 65 64 2d 74 61 |ring he-|tried-ta|
|00004800| 62 6c 65 20 22 22 20 6b | 69 6c 6c 2d 72 69 6e 67 |ble "" k|ill-ring|
|00004810| 20 68 65 2d 65 78 70 61 | 6e 64 2d 6c 69 73 74 20 | he-expa|nd-list |
|00004820| 68 65 2d 73 65 61 72 63 | 68 2d 6c 6f 63 32 20 68 |he-searc|h-loc2 h|
|00004830| 65 2d 77 68 6f 6c 65 2d | 6b 69 6c 6c 2d 73 65 61 |e-whole-|kill-sea|
|00004840| 72 63 68 20 68 65 2d 72 | 65 73 65 74 2d 73 74 72 |rch he-r|eset-str|
|00004850| 69 6e 67 20 68 65 2d 73 | 75 62 73 74 69 74 75 74 |ing he-s|ubstitut|
|00004860| 65 2d 73 74 72 69 6e 67 | 20 74 5d 20 33 20 28 23 |e-string| t] 3 (#|
|00004870| 24 20 2e 20 31 37 39 35 | 33 29 5d 29 0a 28 64 65 |$ . 1795|3)]).(de|
|00004880| 66 61 6c 69 61 73 20 27 | 68 65 2d 77 68 6f 6c 65 |falias '|he-whole|
|00004890| 2d 6b 69 6c 6c 2d 73 65 | 61 72 63 68 20 23 5b 28 |-kill-se|arch #[(|
|000048a0| 73 74 72 29 20 22 c0 89 | c1 5c 6e 21 0b 40 c4 1d |str) "..|.\n!.@..|
|000048b0| 1e 06 1a 1e 07 1e 08 0e | 07 84 9f 00 0b 83 9f 00 |........|........|
|000048c0| 0e 09 84 33 00 ca 5c 6e | 0e 06 0d 54 23 89 15 83 |...3..\n|...T#...|
|000048d0| 33 00 0d 0e 09 42 16 09 | 82 1e 00 0e 07 84 8a 00 |3....B..|........|
|000048e0| 0e 09 83 8a 00 0e 09 40 | 15 0e 09 41 16 09 8a 0e |.......@|...A....|
|000048f0| 0b 62 88 60 0d 5a 65 59 | 83 74 00 60 0d 5a 66 0e |.b.`.ZeY|.t.`.Zf.|
|00004900| 06 cc 48 3d 83 74 00 cd | 0e 06 cc 0d 4f 60 0d 5a |..H=.t..|....O`.Z|
|00004910| ce 23 83 74 00 0e 06 0d | c0 4f 16 07 29 0e 07 83 |.#.t....|.O..)...|
|00004920| 33 00 cf 0e 07 0e 10 5c | 22 83 33 00 c0 89 16 07 |3......\|".3.....|
|00004930| 83 38 00 0e 07 84 10 00 | 0b 83 10 00 0b 41 89 13 |.8......|.....A..|
|00004940| 40 16 06 c4 15 82 10 00 | 0e 07 2d 87 22 20 5b 6e |@.......|..-." [n|
|00004950| 69 6c 20 72 65 67 65 78 | 70 2d 71 75 6f 74 65 20 |il regex|p-quote |
|00004960| 73 74 72 20 68 65 2d 65 | 78 70 61 6e 64 2d 6c 69 |str he-e|xpand-li|
|00004970| 73 74 20 2d 31 20 70 6f | 73 20 6b 69 6c 6c 73 74 |st -1 po|s killst|
|00004980| 72 20 72 65 73 75 6c 74 | 20 63 61 73 65 2d 66 6f |r result| case-fo|
|00004990| 6c 64 2d 73 65 61 72 63 | 68 20 68 65 2d 73 65 61 |ld-searc|h he-sea|
|000049a0| 72 63 68 2d 6c 6f 63 32 | 20 73 74 72 69 6e 67 2d |rch-loc2| string-|
|000049b0| 6d 61 74 63 68 20 68 65 | 2d 73 74 72 69 6e 67 2d |match he|-string-|
|000049c0| 62 65 67 20 30 20 73 65 | 61 72 63 68 2d 62 61 63 |beg 0 se|arch-bac|
|000049d0| 6b 77 61 72 64 20 74 20 | 68 65 2d 73 74 72 69 6e |kward t |he-strin|
|000049e0| 67 2d 6d 65 6d 62 65 72 | 20 68 65 2d 74 72 69 65 |g-member| he-trie|
|000049f0| 64 2d 74 61 62 6c 65 5d | 20 36 5d 29 0a 28 64 65 |d-table]| 6]).(de|
|00004a00| 66 61 6c 69 61 73 20 27 | 68 65 2d 6b 69 6c 6c 2d |falias '|he-kill-|
|00004a10| 62 65 67 20 23 5b 6e 69 | 6c 20 22 60 18 8a c1 c2 |beg #[ni|l "`....|
|00004a20| 21 88 c1 c3 21 c4 55 83 | 13 00 08 82 14 00 60 2a |!...!.U.|......`*|
|00004a30| 87 22 20 5b 6f 70 20 73 | 6b 69 70 2d 73 79 6e 74 |." [op s|kip-synt|
|00004a40| 61 78 2d 62 61 63 6b 77 | 61 72 64 20 22 5e 77 5f |ax-backw|ard "^w_|
|00004a50| 22 20 22 77 5f 22 20 30 | 5d 20 32 5d 29 0a 28 70 |" "w_" 0|] 2]).(p|
|00004a60| 72 6f 76 69 64 65 20 28 | 71 75 6f 74 65 20 68 69 |rovide (|quote hi|
|00004a70| 70 70 69 65 2d 65 78 70 | 29 29 0a |ppie-exp|)). |
+--------+-------------------------+-------------------------+--------+--------+